Slim down the weight of packages we ship
All checks were successful
Build & Test / build-run (push) Successful in 41s
All checks were successful
Build & Test / build-run (push) Successful in 41s
This commit is contained in:
parent
e527da497f
commit
e644a5634a
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,12 +1,15 @@
|
||||||
FROM rust:alpine
|
FROM rust:alpine AS build
|
||||||
RUN apk add deno pkgconfig libressl-dev musl-dev
|
RUN apk add deno pkgconfig libressl-dev musl-dev
|
||||||
|
|
||||||
WORKDIR /FeDirect
|
WORKDIR /FeDirect
|
||||||
|
|
||||||
COPY --link . ./
|
COPY --link . ./
|
||||||
|
|
||||||
ENV ROCKET_ADDRESS=0.0.0.0
|
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
COPY ./target/release/fedirect .
|
||||||
|
|
||||||
CMD ["/FeDirect/target/release/fedirect"]
|
FROM scratch
|
||||||
|
COPY --from=build /FeDirect/known-software.json /FeDirect/static /FeDirect/target/release/fedirect /
|
||||||
|
ENV ROCKET_ADDRESS=0.0.0.0
|
||||||
|
WORKDIR /
|
||||||
|
CMD ["/fedirect"]
|
Loading…
Add table
Reference in a new issue