Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion docker/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN apk add --no-cache --virtual .build-deps make gcc g++ python git \
&& yarn setup \
&& yarn cache clean \
&& apk del .build-deps \
&& echo 'node ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
&& echo 'node ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& chown node:node -R /home/node

USER node
ENTRYPOINT ["bash", "-c", "/entrypoint.sh \"$@\"", "--"]
1 change: 0 additions & 1 deletion docker/production/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo /usr/sbin/ntpd -s

sudo rm -rf /home/node/.config/ark-core/*
sudo rm -rf /home/node/.local/state/ark-core/*
sudo chown node:node -R /home/node
yarn --cwd /home/node/core ark config:publish --network=$NETWORK
sudo rm -f /home/node/.config/ark-core/$NETWORK/.env

Expand Down