0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

refactor: Dockerfile command in one line, save one layer

This commit is contained in:
Juan Picado @jotadeveloper 2017-07-18 20:53:37 +02:00
parent 09656471de
commit f9dea8a52c
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -12,18 +12,17 @@ WORKDIR $APPDIR
ADD . $APPDIR
RUN npm config set registry http://registry.npmjs.org/
RUN npm install -g -s --no-progress yarn --pure-lockfile && \
yarn
ENV NODE_ENV=production
RUN yarn run build:webui && \
yarn cache clean && \
yarn install --production --pure-lockfile
RUN npm config set registry http://registry.npmjs.org/ && \
npm install -g -s --no-progress yarn --pure-lockfile && \
yarn install --production=false && \
yarn run build:webui && \
yarn cache clean && \
yarn install --production=true --pure-lockfile
RUN mkdir -p /verdaccio/storage /verdaccio/conf
ADD conf/docker.yaml /verdaccio/conf/config.yaml
RUN addgroup -S verdaccio && adduser -S -G verdaccio verdaccio && \