Browse Source

Docker: fix permissions issue

pull/906/head
Darknet Villain 7 years ago
parent
commit
d499e250e0
  1. 2
      contrib/docker/Dockerfile
  2. 2
      contrib/docker/entrypoint.sh

2
contrib/docker/Dockerfile

@ -12,7 +12,7 @@ ENV REPO_URL=${REPO_URL} @@ -12,7 +12,7 @@ ENV REPO_URL=${REPO_URL}
ENV I2PD_HOME="/home/i2pd"
ENV DATA_DIR="${I2PD_HOME}/data"
RUN mkdir -p "$I2PD_HOME" \
RUN mkdir -p "$I2PD_HOME" "$DATA_DIR" \
&& adduser -S -h "$I2PD_HOME" i2pd \
&& chown -R i2pd:nobody "$I2PD_HOME"

2
contrib/docker/entrypoint.sh

@ -7,8 +7,6 @@ DEFAULT_ARGS=" --datadir=$DATA_DIR --reseed.verify=true --upnp.enabled=false --h @@ -7,8 +7,6 @@ DEFAULT_ARGS=" --datadir=$DATA_DIR --reseed.verify=true --upnp.enabled=false --h
if [ "$1" = "--help" ]; then
set -- $COMMAND --help
else
# Create datadir
mkdir -p "$DATA_DIR"
ln -s /i2pd_certificates "$DATA_DIR"/certificates
set -- $COMMAND $DEFAULT_ARGS $@
fi

Loading…
Cancel
Save