Skip to content

Commit

Permalink
chore: use production in Docker Image (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrazovic authored Apr 19, 2024
1 parent 0a02d83 commit 51f744d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ FROM docker.io/paritytech/ci-linux:production as builder
ARG PACKAGE
WORKDIR /polimec
COPY . /polimec
RUN cargo build --locked --release -p $PACKAGE
RUN cargo build --locked --profile production -p $PACKAGE

# This is the 2nd stage: a very small image where we copy the Polkadot binary."
FROM debian:bookworm-slim
ARG PACKAGE
COPY --from=builder /polimec/target/release/$PACKAGE /usr/local/bin/polimec
COPY --from=builder /polimec/chain-specs/polimec-raw-chain-spec.json /data
COPY --from=builder /polimec/target/production/$PACKAGE /usr/local/bin/polimec

# 30333 for parachain p2p
# 30334 for relaychain p2p
Expand Down

0 comments on commit 51f744d

Please sign in to comment.