mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
4862acdc0e
- refactor docker image to use builder multistage pattern - separate storage directories - verdaccio code directories are not user writeable - add generic support for random user uid on environments where the startup user for docker is randomized (e.g. openshift)
33 lines
806 B
Text
33 lines
806 B
Text
# we try to avoid adding files to the docker images that change often
|
|
# or that are not needed for running the docker image
|
|
# tis greatly reduces the amount of times we need to rerun `npm install` when building image locally
|
|
# https://codefresh.io/blog/not-ignore-dockerignore/
|
|
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
|
|
|
|
# consider them hidden
|
|
.*
|
|
# you can add exceptions like in .gitignore to maintain a whitelist:
|
|
# e.g.
|
|
!.babelrc
|
|
!.eslintrc
|
|
!.eslintignore
|
|
!.stylelintrc
|
|
!.flowconfig
|
|
!.jest.config.js
|
|
!.jestEnvironment.js
|
|
|
|
# do not copy over node_modules we will run `npm install` anyway
|
|
node_modules
|
|
|
|
# output from test runs and similar things
|
|
*.log
|
|
coverage/
|
|
.vscode/
|
|
|
|
# IDE config files
|
|
jsconfig.json
|
|
*.iml
|
|
|
|
# let's not get to recursive ;)
|
|
Dockerfile*
|
|
docker-compose*.yaml
|