webarc/Dockerfile
JMARyA aba031a047
Some checks are pending
ci/woodpecker/push/build Pipeline is pending
better mime + more index
2025-02-25 00:06:48 +01:00

23 lines
481 B
Docker

FROM rust:buster AS builder
RUN rustup default nightly
RUN git clone "https://github.com/Y2Z/monolith" /monolith
WORKDIR /monolith
RUN cargo build --release
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM debian:buster
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y ca-certificates openssl file
COPY --from=builder /app/target/release/webarc /webarc
COPY --from=builder /monolith/target/release/monolith /usr/bin/monolith
WORKDIR /
CMD ["/webarc"]