From deb77d6c64f7748811c5fbb20da9c691112f200e Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:23:24 -0700 Subject: [PATCH] add Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..bfcc1ad9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +ARG ARCH= +FROM ${ARCH}rust:1.73 as builder +RUN apt update && \ + apt install --no-install-recommends -y \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* +WORKDIR /app +COPY . . +WORKDIR /app/crates/bws +RUN cargo build --release +FROM ${ARCH}debian:trixie-slim as runner +WORKDIR /usr/local/bin +COPY --from=builder /app/target/release/bws . +COPY --from=builder /etc/ssl/certs /etc/ssl/certs + +ENTRYPOINT ["bws"]