diff --git a/Dockerfile b/Dockerfile index 7b8147af9..ccc48e8ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \