docker: build & run the container in production mode

This is leaner (no development dependencies are included in the container) and
faster (among other things, assets are minified & compressed).
This commit is contained in:
muxator 2020-04-19 04:35:27 +02:00 committed by muxator
parent be3d158402
commit 5ade38c86b
2 changed files with 5 additions and 3 deletions

View file

@ -15,9 +15,10 @@ LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite"
# ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
ARG ETHERPAD_PLUGINS=
# Set the following to production to avoid installing devDeps
# this can be done with build args (and is mandatory to build ARM version)
ENV NODE_ENV=development
# By default, Etherpad container is built and run in "production" mode. This is
# leaner (development dependencies are not installed) and runs faster (among
# other things, assets are minified & compressed).
ENV NODE_ENV=production
# Follow the principle of least privilege: run as unprivileged user.
#