gitlab-org--gitlab-foss/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
Text
Raw Normal View History

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"]