提交 f49d9278 authored 作者: zw.wang's avatar zw.wang

pypi-server

上级 e050e5b6
FROM alpine
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories
RUN apk update --no-cache \
&& apk add --no-cache python3 \
&& cd /usr/bin \
&& ln -sf pip3 pip \
&& mkdir -p /root/.pip \
&& echo -e '[global]\nindex_url = https://pypi.doubanio.com/simple' > /root/.pip/pip.conf \
&& pip install --upgrade --no-cache-dir pip
WORKDIR ~
RUN apk add supervisor \
&& pip install pypiserver
EXPOSE 31415
ENTRYPOINT ["pypi-server -p 31415"]
version: "3"
services:
pypi_server:
container_name: pypi_server_container
image: pypi_server:latest
ports:
- 31415:31415
volumes:
- /etc/localtime:/etc/localtime
[supervisord]
nodaemon=true
[program:pypi_server]
command=/usr/bin/gunicorn -w 1 -b 0.0.0.0:8080 --pythonpath='/usr/lib/python3.5/dist-packages,/usr/python3/dist-packages,/usr/lib/python3.5' pypi-server
directory=/~/packages
user=root
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/opt/supervisor/pypi_server.log
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论