Skip to content

Commit

Permalink
CR: release build
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Sep 18, 2024
1 parent 4d982c1 commit 127e7ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sqs-forwarder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ RUN /build/platform.sh

# Build binary.
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
#RUN cargo zigbuild -Z bindeps --target $(cat /.platform) --release
#RUN cp /build/target/$(cat /.platform)/release/sqs-forwarder /sqs-forwarder
RUN cargo zigbuild -Z bindeps --target $(cat /.platform)
RUN cp /build/target/$(cat /.platform)/debug/sqs-forwarder /sqs-forwarder
RUN cargo zigbuild -Z bindeps --target $(cat /.platform) --release
RUN cp /build/target/$(cat /.platform)/release/sqs-forwarder /sqs-forwarder

# Slim final layer with only the binary.
FROM debian:stable-slim
Expand Down

0 comments on commit 127e7ae

Please sign in to comment.