remove devdeps from prod builds
parent
cbd393d56b
commit
c1321f5b14
|
@ -13,6 +13,10 @@ LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite"
|
||||||
# If not given, build the latest development version.
|
# If not given, build the latest development version.
|
||||||
ARG ETHERPAD_VERSION=develop
|
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
|
# grab the ETHERPAD_VERSION tarball from github (no need to clone the whole
|
||||||
# repository)
|
# repository)
|
||||||
RUN echo "Getting version: ${ETHERPAD_VERSION}" && \
|
RUN echo "Getting version: ${ETHERPAD_VERSION}" && \
|
||||||
|
|
|
@ -22,10 +22,10 @@ Build the version you prefer:
|
||||||
docker build --tag <YOUR_USERNAME>/etherpad .
|
docker build --tag <YOUR_USERNAME>/etherpad .
|
||||||
|
|
||||||
# builds latest stable version
|
# 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
|
# 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
|
# builds a specific git hash
|
||||||
docker build --build-arg ETHERPAD_VERSION=4c45ac3cb1ae --tag <YOUR_USERNAME>/etherpad .
|
docker build --build-arg ETHERPAD_VERSION=4c45ac3cb1ae --tag <YOUR_USERNAME>/etherpad .
|
||||||
|
|
Loading…
Reference in New Issue