deploy update
This commit is contained in:
		
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
# Build stage
 | 
			
		||||
FROM rust:1.86 as builder
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
COPY . .
 | 
			
		||||
RUN cargo build --release
 | 
			
		||||
 | 
			
		||||
# Test stage
 | 
			
		||||
FROM builder as test
 | 
			
		||||
RUN cargo test
 | 
			
		||||
 | 
			
		||||
# Production stage
 | 
			
		||||
FROM debian:bookworm-slim as production
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
RUN apt update -q
 | 
			
		||||
RUN apt install openssl -y -q
 | 
			
		||||
COPY --from=builder /usr/src/app/target/release/cait-sith .
 | 
			
		||||
CMD ["./cait-sith"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user