Merge pull request 'Slim down the weight of packages we ship' (#7) from Dockerfile-redo into main
Reviewed-on: #7
This commit is contained in:
commit
98a9cad7f4
1 changed files with 8 additions and 4 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,12 +1,16 @@
|
||||||
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/target/release/fedirect /
|
||||||
|
COPY --from=build /FeDirect/static/ /static
|
||||||
|
ENV ROCKET_ADDRESS=0.0.0.0
|
||||||
|
WORKDIR /
|
||||||
|
CMD ["/fedirect"]
|
Loading…
Add table
Reference in a new issue