https://github.com/nilorg/sinopia-dockerfile
sinopia
https://github.com/nilorg/sinopia-dockerfile
docker dockerfile sinopia sinopia-dockerfile
Last synced: 2 months ago
JSON representation
sinopia
- Host: GitHub
- URL: https://github.com/nilorg/sinopia-dockerfile
- Owner: nilorg
- License: mit
- Created: 2020-05-06T08:53:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T02:11:57.000Z (about 5 years ago)
- Last Synced: 2025-02-02T21:32:02.042Z (4 months ago)
- Topics: docker, dockerfile, sinopia, sinopia-dockerfile
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sinopia-dockerfile
sinopia部署简易私有化的npm包管理**sinopia已停止维护,改用[nilorg-verdaccio](https://github.com/nilorg/verdaccio-dockerfile)**
## Docker 使用
```bash
docker run --name sinopia -p 80:4873 -d nilorg/sinopia:latest
```## 创建自定义账户
1. 设置npm自定义`registry`
```bash
npm set registry http://192.168.1.105:4873
```
2. 创建用户
```bash
npm adduser --registry http://192.168.1.105:4873
```## 用`nrm`来管理npm的镜像地址
1. 全局安装 nrm
```bash
npm install -g nrm
```
2. 添加虚拟机npm服务镜像地址
```bash
# nrm add myNpmjs http://192.168.1.105:4873
nrm add http://192.168.1.105:4873
```
3. 虚拟机镜像
```bash
nrm use myNpmjs
```