🐳 Update Dockerfile
This commit is contained in:
parent
7351ad9c5d
commit
31c20fff10
1 changed files with 11 additions and 3 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,9 +1,17 @@
|
||||||
FROM rust:latest AS builder
|
FROM rust as builder
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./ .
|
|
||||||
|
|
||||||
RUN cargo build --release
|
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"]
|
CMD ["/app/target/release/me-site"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue