18 lines
		
	
	
	
		
			565 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
	
		
			565 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
								 | 
							
								FROM rust:1.89.0 AS builder
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								WORKDIR /usr/src/asklyphe/
							 | 
						||
| 
								 | 
							
								COPY asklyphe-frontend asklyphe-frontend
							 | 
						||
| 
								 | 
							
								COPY asklyphe-common asklyphe-common
							 | 
						||
| 
								 | 
							
								COPY lyphedb lyphedb
							 | 
						||
| 
								 | 
							
								COPY unit_converter unit_converter
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								RUN cargo install --debug --path asklyphe-frontend/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								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-frontend /usr/local/bin/
							 | 
						||
| 
								 | 
							
								COPY --from=builder /usr/src/asklyphe/asklyphe-frontend/static /data/static
							 | 
						||
| 
								 | 
							
								VOLUME /data
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								CMD ["asklyphe-frontend"]
							 |