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