debian-mirror-gitlab/vendor/Dockerfile/Rust.Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
191 B
Docker
Raw Normal View History

2020-10-24 23:57:45 +05:30
FROM rust:1.45 as builder
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
FROM debian:buster-slim
COPY --from=builder /usr/src/app/target/release/app .
EXPOSE 8080
CMD ["./app"]