mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
Add ETHERPAD_LOCAL_PLUGINS arg to Dockerfile
This commit is contained in:
parent
324b38e90e
commit
bb02ace08c
1 changed files with 15 additions and 2 deletions
17
Dockerfile
17
Dockerfile
|
@ -40,6 +40,14 @@ ARG SETTINGS=./settings.json.docker
|
||||||
# ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
|
# ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
|
||||||
ARG ETHERPAD_PLUGINS=
|
ARG ETHERPAD_PLUGINS=
|
||||||
|
|
||||||
|
# local 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.
|
||||||
|
#
|
||||||
|
# EXAMPLE:
|
||||||
|
# ETHERPAD_LOCAL_PLUGINS="../ep_my_plugin ../ep_another_plugin"
|
||||||
|
ARG ETHERPAD_LOCAL_PLUGINS=
|
||||||
|
|
||||||
# Control whether abiword will be installed, enabling exports to DOC/PDF/ODT formats.
|
# Control whether abiword will be installed, enabling exports to DOC/PDF/ODT formats.
|
||||||
# By default, it is not installed.
|
# By default, it is not installed.
|
||||||
# If given any value, abiword will be installed.
|
# If given any value, abiword will be installed.
|
||||||
|
@ -109,7 +117,10 @@ COPY --chown=etherpad:etherpad ./src/package.json .npmrc ./src/pnpm-lock.yaml ./
|
||||||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin
|
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin
|
||||||
|
|
||||||
RUN bin/installDeps.sh && \
|
RUN bin/installDeps.sh && \
|
||||||
{ [ -z "${ETHERPAD_PLUGINS}" ] || pnpm run install-plugins ${ETHERPAD_PLUGINS}; }
|
if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_LOCAL_PLUGINS}" ]; then \
|
||||||
|
pnpm run install-plugins ${ETHERPAD_PLUGINS} ${ETHERPAD_LOCAL_PLUGINS:+--path ${ETHERPAD_LOCAL_PLUGINS}}; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
FROM build as production
|
FROM build as production
|
||||||
|
|
||||||
|
@ -120,7 +131,9 @@ COPY --chown=etherpad:etherpad ./src ./src
|
||||||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin
|
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin
|
||||||
|
|
||||||
RUN bin/installDeps.sh && rm -rf ~/.npm && \
|
RUN bin/installDeps.sh && rm -rf ~/.npm && \
|
||||||
{ [ -z "${ETHERPAD_PLUGINS}" ] || pnpm run install-plugins ${ETHERPAD_PLUGINS}; }
|
if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_LOCAL_PLUGINS}" ]; then \
|
||||||
|
pnpm run install-plugins ${ETHERPAD_PLUGINS} ${ETHERPAD_LOCAL_PLUGINS:+--path ${ETHERPAD_LOCAL_PLUGINS}}; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Copy the configuration file.
|
# Copy the configuration file.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue