Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tangowithfoxtrot committed Oct 24, 2023
1 parent 9ff37c7 commit deb77d6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit deb77d6

Please sign in to comment.