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:
parent
f8a7483b08
commit
1465ce2b92
3 changed files with 15 additions and 3 deletions
|
@ -8,7 +8,10 @@
|
||||||
.*
|
.*
|
||||||
# you can add exceptions like in .gitignore to maintain a whitelist:
|
# you can add exceptions like in .gitignore to maintain a whitelist:
|
||||||
# e.g.
|
# e.g.
|
||||||
#!.babelrc
|
!.babelrc
|
||||||
|
!.eslintrc
|
||||||
|
!.eslintignore
|
||||||
|
!.stylelintrc
|
||||||
|
|
||||||
# not going to run tests inside the docker container
|
# not going to run tests inside the docker container
|
||||||
test/
|
test/
|
||||||
|
|
11
Dockerfile
11
Dockerfile
|
@ -12,7 +12,16 @@ WORKDIR $APPDIR
|
||||||
|
|
||||||
ADD . $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
|
RUN mkdir -p /verdaccio/storage /verdaccio/conf
|
||||||
ADD conf/docker.yaml /verdaccio/conf/config.yaml
|
ADD conf/docker.yaml /verdaccio/conf/config.yaml
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
"test-only": "mocha ./test/functional ./test/unit",
|
"test-only": "mocha ./test/functional ./test/unit",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
|
"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",
|
"build:webui": "rimraf static/* && webpack --config tools/webpack.prod.config.babel.js --debug",
|
||||||
"dev:webui": "babel-node tools/dev.server.js",
|
"dev:webui": "babel-node tools/dev.server.js",
|
||||||
"prepublish": "in-publish && npm run build:webpack || not-in-publish",
|
"prepublish": "in-publish && npm run build:webpack || not-in-publish",
|
||||||
|
|
Loading…
Reference in a new issue