mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
- Added docker image for rpi
- Added instructions for build rpi image - Added npm scripts for building images
This commit is contained in:
parent
dbb5fa2c9c
commit
8e8c8b67f5
3 changed files with 25 additions and 1 deletions
13
Dockerfile.rpi
Normal file
13
Dockerfile.rpi
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM hypriot/rpi-node:6-onbuild
|
||||
|
||||
RUN mkdir -p /verdaccio/storage /verdaccio/conf
|
||||
|
||||
WORKDIR /verdaccio
|
||||
|
||||
ADD conf/docker.yaml /verdaccio/conf/config.yaml
|
||||
|
||||
EXPOSE 4873
|
||||
|
||||
VOLUME ["/verdaccio/conf", "/verdaccio/storage"]
|
||||
|
||||
CMD ["/usr/src/app/bin/verdaccio", "--config", "/verdaccio/conf/config.yaml", "--listen", "0.0.0.0:4873"]
|
|
@ -57,6 +57,15 @@ To build your own image:
|
|||
|
||||
`docker build -t verdaccio .`
|
||||
|
||||
There is also an npm script for building the docker image, so you can also do:
|
||||
|
||||
`npm run build-docker`
|
||||
|
||||
If you want to use the docker image on a rpi or a compatible device there is also a dockerfile available.
|
||||
To build the docker image for raspberry pi execute:
|
||||
|
||||
`npm run build-docker:rpi`
|
||||
|
||||
To run the docker container:
|
||||
|
||||
```
|
||||
|
|
|
@ -73,7 +73,9 @@
|
|||
"test:coverage": "nyc --reporter=html --reporter=text mocha -R spec ./test/functional ./test/unit",
|
||||
"test-travis": "eslint . && npm run test:coverage",
|
||||
"test-only": "mocha ./test/functional ./test/unit",
|
||||
"lint": "eslint ."
|
||||
"lint": "eslint .",
|
||||
"build-docker": "docker build -t verdaccio .",
|
||||
"build-docker:rpi": "docker build -f Dockerfile.rpi -t verdaccio:rpi ."
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10"
|
||||
|
|
Loading…
Reference in a new issue