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

fix: Dockerfile to run webpack step

This commit is contained in:
Juan Picado @jotadeveloper 2017-07-15 21:58:33 +02:00
parent f8a7483b08
commit 1465ce2b92
No known key found for this signature in database
GPG key ID: 18AC54485952D158
3 changed files with 15 additions and 3 deletions

View file

@ -8,7 +8,10 @@
.*
# you can add exceptions like in .gitignore to maintain a whitelist:
# e.g.
#!.babelrc
!.babelrc
!.eslintrc
!.eslintignore
!.stylelintrc
# not going to run tests inside the docker container
test/

View file

@ -12,7 +12,16 @@ WORKDIR $APPDIR
ADD . $APPDIR
RUN npm install
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 mkdir -p /verdaccio/storage /verdaccio/conf
ADD conf/docker.yaml /verdaccio/conf/config.yaml

View file

@ -125,7 +125,7 @@
"test-only": "mocha ./test/functional ./test/unit",
"lint": "eslint .",
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
"build-docker": "docker build -t verdaccio .",
"build-docker": "docker build -t verdaccio . --no-cache",
"build:webui": "rimraf static/* && webpack --config tools/webpack.prod.config.babel.js --debug",
"dev:webui": "babel-node tools/dev.server.js",
"prepublish": "in-publish && npm run build:webpack || not-in-publish",