mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 00:15:13 -04:00
Move to own variable for detecting production build.
This commit is contained in:
parent
4ee98749bb
commit
e61e752895
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ ARG INSTALL_SOFFICE=
|
||||||
# leaner (development dependencies are not installed) and runs faster (among
|
# leaner (development dependencies are not installed) and runs faster (among
|
||||||
# other things, assets are minified & compressed).
|
# other things, assets are minified & compressed).
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
ENV ETHERPAD_PRODUCTION=true
|
||||||
# Install dependencies required for modifying access.
|
# Install dependencies required for modifying access.
|
||||||
RUN apk add shadow
|
RUN apk add shadow
|
||||||
# Follow the principle of least privilege: run as unprivileged user.
|
# Follow the principle of least privilege: run as unprivileged user.
|
||||||
|
|
|
@ -45,9 +45,9 @@ cd ep_etherpad-lite)
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
|
|
||||||
if [[ -z "${NODE_ENV}" ]]; then
|
if [[ -z "${ETHERPAD_PRODUCTION}" ]]; then
|
||||||
log "Installing dev dependencies"
|
log "Installing dev dependencies"
|
||||||
npm ci --no-optional --omit=optional --include=dev --lockfile-version 1 || exit 1
|
npm ci --no-optional --omit=optional --include=dev --lockfile-version 1 || exit 1
|
||||||
else
|
else
|
||||||
log "Installing production dependencies"
|
log "Installing production dependencies"
|
||||||
npm ci --no-optional --omit=optional --omit=dev --lockfile-version 1 --production || exit 1
|
npm ci --no-optional --omit=optional --omit=dev --lockfile-version 1 --production || exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue