Skip to content

Commit

Permalink
Create user before copying polkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Sep 26, 2024
1 parent b8121f2 commit 99b1500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ RUN cargo build --release --package polkadot
##################
FROM docker.io/debian:12-slim

COPY --from=builder /opt/polkadot-sdk/target/release/polkadot /usr/local/bin/polkadot

RUN addgroup --gid 65532 nonroot \
&& adduser --system --uid 65532 --gid 65532 --home /home/nonroot nonroot
&& adduser --system --uid 65532 --gid 65532 --home /home/nonroot nonroot

COPY --from=builder /opt/polkadot-sdk/target/release/polkadot /usr/local/bin/polkadot

USER 65532

Expand Down

0 comments on commit 99b1500

Please sign in to comment.