docker: Fix the comments about settings.json copy

The "conditional copy trick" was removed in #3644, but I failed to
update the corresponding comment.
pull/3885/head
Pierre Prinetti 2019-10-24 11:09:30 +02:00 committed by muxator
parent 0104c9f321
commit 801d519165
1 changed files with 1 additions and 6 deletions

View File

@ -53,12 +53,7 @@ RUN bin/installDeps.sh && \
# able to split at spaces.
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install "${PLUGIN_NAME}"; done
# Copy the custom configuration file, if present. The configuration file has to
# be manually put inside the same directory containing the Dockerfile (we cannot
# directly point to "../settings.json" for Docker's security restrictions).
#
# For the conditional COPY trick, see:
# https://stackoverflow.com/questions/31528384/conditional-copy-add-in-dockerfile#46801962
# Copy the configuration file.
COPY ./settings.json /opt/etherpad-lite/
# Follow the principle of least privilege: run as unprivileged user.