diff --git a/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile b/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile index 7e460bb22e89..b68bf93fce99 100644 --- a/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile +++ b/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile @@ -1,5 +1,5 @@ # This is the build stage for Polkadot. Here we create the binary in a temporary image. -FROM docker.io/paritytech/ci-linux:production as builder +FROM docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408 as builder WORKDIR /polkadot COPY . /polkadot @@ -19,7 +19,8 @@ LABEL description="Multistage Docker image for Polkadot: a platform for web3" \ COPY --from=builder /polkadot/target/release/polkadot /usr/local/bin -RUN useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \ +USER root +RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \ mkdir -p /data /polkadot/.local/share && \ chown -R polkadot:polkadot /data && \ ln -s /data /polkadot/.local/share/polkadot && \