From 53ef77a24d75234e592549f6030c70b79ed572f8 Mon Sep 17 00:00:00 2001 From: Denys Halenok Date: Sat, 23 Sep 2023 11:46:14 +0200 Subject: [PATCH] Add ability to specify configuration file as a build arg (#5944) --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8328b309d..6c45683f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ RUN \ } ENV TIMEZONE=${TIMEZONE} +# Control the configuration file to be copied into the container. +ARG SETTINGS=./settings.json.docker + # plugins to install while building the container. By default no plugins are # installed. # If given a value, it has to be a space-separated, quoted list of plugin names. @@ -101,7 +104,7 @@ RUN { [ -z "${ETHERPAD_PLUGINS}" ] || \ rm -rf ~/.npm # Copy the configuration file. -COPY --chown=etherpad:etherpad ./settings.json.docker "${EP_DIR}"/settings.json +COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json # Fix group permissions RUN chmod -R g=u .