Skip to content

Commit

Permalink
Create Dockerfile.build_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Jan 6, 2024
1 parent e7c2bae commit 8baeba5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile.build_binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rust:1.74.1-bullseye as builder
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
WORKDIR /tmp/acars-bridge
# hadolint ignore=DL3008,DL3003,SC1091,DL3009
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends libzmq3-dev
COPY . .

RUN cargo build --release

FROM scratch
COPY --from=builder /tmp/acars-bridge/target/release/acars-bridge /acars-bridge

0 comments on commit 8baeba5

Please sign in to comment.