Created
July 10, 2018 00:21
-
-
Save soaxelbrooke/82f1ac107bc851f2633947feb7ccd8ef to your computer and use it in GitHub Desktop.
A dockerfile for building minimal rust nightly containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rustlang/rust:nightly AS builder | |
WORKDIR /app | |
COPY src/ src/ | |
COPY Cargo.* ./ | |
RUN cargo build --release | |
FROM debian:stretch-slim | |
COPY --from=builder /app/target/release/api . | |
CMD ["./api"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment