remove devdeps from prod builds

This commit is contained in:
Adrien le Maire 2019-03-29 10:28:56 +01:00 committed by muxator
parent cbd393d56b
commit c1321f5b14
2 changed files with 6 additions and 2 deletions

View File

@ -13,6 +13,10 @@ LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite"
# If not given, build the latest development version.
ARG ETHERPAD_VERSION=develop
# Set the following to production to avoid installing devDeps
# this can be one with build args (and is mandatory to build ARM version
ARG NODE_ENV=development
# grab the ETHERPAD_VERSION tarball from github (no need to clone the whole
# repository)
RUN echo "Getting version: ${ETHERPAD_VERSION}" && \

View File

@ -22,10 +22,10 @@ Build the version you prefer:
docker build --tag <YOUR_USERNAME>/etherpad .
# builds latest stable version
docker build --build-arg ETHERPAD_VERSION=master --tag <YOUR_USERNAME>/etherpad .
docker build --build-arg ETHERPAD_VERSION=master --build-arg NODE_ENV=production --tag <YOUR_USERNAME>/etherpad .
# builds a specific version
docker build --build-arg ETHERPAD_VERSION=1.7.5 --tag <YOUR_USERNAME>/etherpad .
docker build --build-arg ETHERPAD_VERSION=1.7.5 --build-arg NODE_ENV=production --tag <YOUR_USERNAME>/etherpad .
# builds a specific git hash
docker build --build-arg ETHERPAD_VERSION=4c45ac3cb1ae --tag <YOUR_USERNAME>/etherpad .