0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore(docker): use yarn lock file

This commit is contained in:
Juan Picado @jotadeveloper 2019-08-18 07:50:42 +02:00
parent 87c3a29bd5
commit 8b03637b63
No known key found for this signature in database
GPG key ID: 15AA875EF3768142

View file

@ -1,7 +1,7 @@
FROM node:10.16-alpine as builder
ENV NODE_ENV=production \
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
RUN apk --no-cache add openssl ca-certificates wget && \
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python && \
@ -13,11 +13,11 @@ WORKDIR /opt/verdaccio-build
COPY . .
RUN yarn config set registry $VERDACCIO_BUILD_REGISTRY && \
yarn install --production=false --no-lockfile && \
yarn install --production=false && \
yarn lint && \
yarn code:docker-build && \
yarn cache clean && \
yarn install --production=true --no-lockfile
yarn install --production=true