Skip to content

Commit

Permalink
Update the polkadot_builder Dockerfile (#4638)
Browse files Browse the repository at this point in the history
This Dockerfile seems outdated - it currently fails to build (on my
machine).
I don't see it being built anywhere on CI.

I did a couple of tweaks to make it build.

---------

Co-authored-by: Alexander Samusev <[email protected]>
  • Loading branch information
rzadp and alvicsam authored Jun 5, 2024
1 parent 3977f38 commit 8ffe229
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/dockerfiles/polkadot/polkadot_builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 && \
Expand Down

0 comments on commit 8ffe229

Please sign in to comment.