15 lines
No EOL
335 B
Docker
15 lines
No EOL
335 B
Docker
FROM rust:alpine AS build
|
|
RUN apk add deno pkgconfig libressl-dev musl-dev
|
|
|
|
WORKDIR /FeDirect
|
|
|
|
COPY --link . ./
|
|
|
|
RUN cargo build --release
|
|
|
|
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"] |