modified dockerfile again
updated rust version, added RUN command that installs openssl
This commit is contained in:
		@@ -1,8 +1,7 @@
 | 
				
			|||||||
# Build stage
 | 
					# Build stage
 | 
				
			||||||
FROM rust:1.75 as builder
 | 
					FROM rust:1.82 as builder
 | 
				
			||||||
WORKDIR /usr/src/app
 | 
					WORKDIR /usr/src/app
 | 
				
			||||||
COPY . .
 | 
					COPY . .
 | 
				
			||||||
RUN apt install openssl -y -q
 | 
					 | 
				
			||||||
RUN cargo build --release
 | 
					RUN cargo build --release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Test stage
 | 
					# Test stage
 | 
				
			||||||
@@ -12,5 +11,7 @@ RUN cargo test
 | 
				
			|||||||
# Production stage
 | 
					# Production stage
 | 
				
			||||||
FROM debian:bookworm-slim as production
 | 
					FROM debian:bookworm-slim as production
 | 
				
			||||||
WORKDIR /usr/src/app
 | 
					WORKDIR /usr/src/app
 | 
				
			||||||
 | 
					RUN apt update -q
 | 
				
			||||||
 | 
					RUN apt install openssl -y -q
 | 
				
			||||||
COPY --from=builder /usr/src/app/target/release/ball-bot .
 | 
					COPY --from=builder /usr/src/app/target/release/ball-bot .
 | 
				
			||||||
CMD ["./ball-bot"]
 | 
					CMD ["./ball-bot"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user