Skip to content

Commit

Permalink
use same builder as other docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Aug 1, 2023
1 parent 71aa3ad commit 1ad5ac8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dockerfiles/components/stacks-network.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# build stage
FROM arm64v8/rust:1.67 as builder
FROM rust:bullseye as build

COPY . ./

RUN cargo build --release --manifest-path ./components/stacks-network/Cargo.toml

# prod stage
FROM gcr.io/distroless/cc
COPY --from=builder target/release/stacks-network /
FROM debian:bullseye-slim
COPY --from=build target/release/stacks-network /

ENTRYPOINT ["./stacks-network"]

0 comments on commit 1ad5ac8

Please sign in to comment.