summaryrefslogtreecommitdiff
path: root/vendor/Dockerfile/Rust.Dockerfile
blob: d066d9f6cf62a542784ba664e29cdce3edf2446c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"]