2025-09-04 15:53:53 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM rust:1.89.0 AS builder
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								WORKDIR /usr/src/asklyphe/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY asklyphe-auth-frontend asklyphe-auth-frontend
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY asklyphe-common asklyphe-common
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY lyphedb lyphedb
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-09-05 14:20:42 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
							 | 
						
					
						
							
								
									
										
										
										
											2025-09-04 20:49:25 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									--mount=type=cache,target=/usr/src/asklyphe/asklyphe-auth-frontend/target \
							 | 
						
					
						
							
								
									
										
										
										
											2025-09-05 14:20:42 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
							 | 
						
					
						
							
								
									
										
										
										
											2025-09-04 20:49:25 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									cargo install --debug --path asklyphe-auth-frontend/
							 | 
						
					
						
							
								
									
										
										
										
											2025-09-04 15:53:53 +12:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								FROM debian:trixie-slim
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY --from=builder /usr/local/cargo/bin/asklyphe-auth-frontend /usr/local/bin/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								COPY --from=builder /usr/src/asklyphe/asklyphe-auth-frontend/static /data/static
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								VOLUME /data
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								CMD ["asklyphe-auth-frontend"]
							 |