Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
# add user
useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot
# add user and link ~/.local/share/polkadot to /data
useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /polkadot/.local/share && \
mkdir /data && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot

# add polkadot binary to docker image
COPY ./polkadot /usr/local/bin
Expand Down
6 changes: 5 additions & 1 deletion scripts/docker/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ RUN apt-get update && \
# apt cleanup
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* ; \
mkdir -p /polkadot/.local/share && \
mkdir /data && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot

USER polkadot

Expand Down