From 99b15008f07f3acc43432e5f69e5873621307ac1 Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Thu, 26 Sep 2024 15:40:03 +0200 Subject: [PATCH] Create user before copying polkadot --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d2065b..256e065 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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