added version in docker to npm package.json

This commit is contained in:
Nico Hanus
2020-06-23 14:32:27 +02:00
parent bf8a11ea08
commit 0dd86af01d
2 changed files with 5 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
#stage 1
FROM node:10-stretch as node
ARG IS_PRODUCTION=false
ARG SEMVERSION=1.0.0
WORKDIR /app
COPY . .
RUN umask 0022
RUN npm version ${SEMVERSION}
RUN npm install --always-auth=false
RUN if [ "${IS_PRODUCTION}" = "true" ] ; then npm run-script build-prod ; else npm run-script build ; fi