Add /data symlink to Docker containers (#2627)

* add /data symlink to Docker

* fix comments
This commit is contained in:
Martin Pugh
2021-03-16 15:11:50 +01:00
committed by GitHub
parent 6b0c56b8ab
commit de6a2573cd
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -27,8 +27,11 @@ 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 /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot
# add polkadot binary to docker image
COPY ./polkadot /usr/local/bin