1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

Update readme, docker tags support

This commit is contained in:
Juan Picado 2017-05-14 16:15:04 +02:00
parent 7bf1a5a802
commit 93bea50176
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -51,22 +51,49 @@ Now you can navigate to [http://localhost:4873/](http://localhost:4873/) where y
### Docker
To use the pre-built [docker image](https://hub.docker.com/r/verdaccio/verdaccio/):
To use the latest pre-built [docker image](https://hub.docker.com/r/verdaccio/verdaccio/):
`docker pull verdaccio/verdaccio`
To build your own image:
#### By tags
`docker build -t verdaccio .`
Since version `v2.x` you can pull docker images by [tag](https://hub.docker.com/r/verdaccio/verdaccio/tags/), as follows:
For a major version:
```bash
docker pull verdaccio/verdaccio:2
```
For a minor version:
```bash
docker pull verdaccio/verdaccio:2.1
```
For a specific (minor) version:
```bash
docker pull verdaccio/verdaccio:2.1.7
```
#### Build your own Docker image
```bash
docker build -t verdaccio .
```
There is also an npm script for building the docker image, so you can also do:
`npm run build-docker`
```bash
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`
```bash
npm run build-docker:rpi
```
To run the docker container: