🐳 Update Dockerfile

This commit is contained in:
JMARyA 2022-11-14 17:44:53 +01:00
parent 7351ad9c5d
commit 31c20fff10
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -1,9 +1,17 @@
FROM rust:latest AS builder
FROM rust as builder
COPY . /app
WORKDIR /app
COPY ./ .
RUN cargo build --release
FROM ubuntu
RUN apt-get update
RUN apt-get install -y gnupg
COPY --from=builder /app /app
WORKDIR /app
CMD ["/app/target/release/me-site"]