0%

Deploying pypiserver in Docker

配置docker-compose.yaml文件

1
2
3
4
5
6
7
8
9
10
11
version: "2"
services:
pypi:
image: hypc/pypi:1.3.1-alpine
volumes:
- /srv/pypi:/srv/pypi
ports:
- 8080:80
environment:
- PYPI_PORT=80
- FALLBACK_URL=https://mirrors.aliyun.com/pypi/simple/

运行服务

1
docker-compose up -d