webarc/Dockerfile

24 lines
476 B
Text
Raw Permalink Normal View History

2024-12-30 22:06:15 +01:00
FROM rust:buster AS builder
2024-12-29 16:51:34 +01:00
RUN rustup default nightly
2024-12-29 18:44:46 +01:00
RUN git clone "https://github.com/Y2Z/monolith" /monolith
WORKDIR /monolith
RUN cargo build --release
2024-12-30 21:52:48 +01:00
COPY . /app
WORKDIR /app
RUN cargo build --release
2024-12-29 16:51:34 +01:00
FROM debian:buster
RUN apt-get update && apt-get upgrade -y
2024-12-29 18:44:46 +01:00
RUN apt-get install -y ca-certificates openssl
2024-12-29 16:51:34 +01:00
COPY --from=builder /app/target/release/webarc /webarc
2024-12-29 18:44:46 +01:00
COPY --from=builder /monolith/target/release/monolith /usr/bin/monolith
2024-12-29 16:51:34 +01:00
WORKDIR /
CMD ["/webarc"]