mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
refactor: Dockerfile command in one line, save one layer
This commit is contained in:
parent
09656471de
commit
f9dea8a52c
13
Dockerfile
13
Dockerfile
@ -12,18 +12,17 @@ WORKDIR $APPDIR
|
|||||||
|
|
||||||
ADD . $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
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
RUN yarn run build:webui && \
|
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 cache clean && \
|
||||||
yarn install --production --pure-lockfile
|
yarn install --production=true --pure-lockfile
|
||||||
|
|
||||||
RUN mkdir -p /verdaccio/storage /verdaccio/conf
|
RUN mkdir -p /verdaccio/storage /verdaccio/conf
|
||||||
|
|
||||||
ADD conf/docker.yaml /verdaccio/conf/config.yaml
|
ADD conf/docker.yaml /verdaccio/conf/config.yaml
|
||||||
|
|
||||||
RUN addgroup -S verdaccio && adduser -S -G verdaccio verdaccio && \
|
RUN addgroup -S verdaccio && adduser -S -G verdaccio verdaccio && \
|
||||||
|
Loading…
Reference in New Issue
Block a user