mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Add ability to specify configuration file as a build arg (#5944)
This commit is contained in:
parent
bc302538c0
commit
53ef77a24d
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ RUN \
|
||||||
}
|
}
|
||||||
ENV TIMEZONE=${TIMEZONE}
|
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
|
# plugins to install while building the container. By default no plugins are
|
||||||
# installed.
|
# installed.
|
||||||
# If given a value, it has to be a space-separated, quoted list of plugin names.
|
# 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
|
rm -rf ~/.npm
|
||||||
|
|
||||||
# Copy the configuration file.
|
# 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
|
# Fix group permissions
|
||||||
RUN chmod -R g=u .
|
RUN chmod -R g=u .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue