webarc/Dockerfile
JMARyA ecd71e8bf7
Some checks failed
ci/woodpecker/push/build Pipeline failed
fix
2024-12-29 18:42:21 +01:00

23 lines
472 B
Docker

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