0
Fork 0
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:
danielo515 2017-03-06 09:33:52 +01:00
parent dbb5fa2c9c
commit 8e8c8b67f5
3 changed files with 25 additions and 1 deletions

13
Dockerfile.rpi Normal file
View 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"]

View file

@ -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:
```

View file

@ -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"