This commit is contained in:
		
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
FROM rust:1-alpine AS chef 
 | 
					FROM docker.io/library/rust:1-alpine AS chef 
 | 
				
			||||||
RUN apk add --no-cache musl-dev
 | 
					RUN apk add --no-cache musl-dev
 | 
				
			||||||
RUN cargo install cargo-chef 
 | 
					RUN cargo install cargo-chef 
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
@@ -15,7 +15,9 @@ RUN cargo chef cook --release --recipe-path recipe.json
 | 
				
			|||||||
COPY . .
 | 
					COPY . .
 | 
				
			||||||
RUN cargo build --release
 | 
					RUN cargo build --release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM alpine AS runtime
 | 
					FROM scratch AS runtime
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /
 | 
				
			||||||
COPY --from=builder /app/target/release/cr-web-test /usr/local/bin
 | 
					COPY --from=builder /app/target/release/cr-web-test /
 | 
				
			||||||
ENTRYPOINT ["/usr/local/bin/cr-web-test"]
 | 
					ENV ROCKET_ADDRESS 0.0.0.0
 | 
				
			||||||
 | 
					ENV ROCKET_PORT 80
 | 
				
			||||||
 | 
					ENTRYPOINT ["/cr-web-test"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user