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:
parent
09656471de
commit
f9dea8a52c
1 changed files with 7 additions and 8 deletions
15
Dockerfile
15
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/ && \
|
||||||
yarn cache clean && \
|
npm install -g -s --no-progress yarn --pure-lockfile && \
|
||||||
yarn install --production --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
|
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 a new issue