1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/Dockerfile
2018-11-09 18:21:32 -06:00

27 lines
615 B
Docker

FROM python:3.6-alpine
# Build
COPY . /code
WORKDIR /code
RUN addgroup -S -g 9898 pypiserver && \
adduser -S -u 9898 -G pypiserver pypiserver && \
apk add py-bcrypt && \
python setup.py install && \
pip install passlib && \
cd / && \
rm -rf /code && \
mkdir -p /data/packages && \
chown -R pypiserver:pypiserver /data/packages && \
# Set the setgid bit so anything added here gets associated with the
# pypiserver group
chmod g+s /data/packages
VOLUME /data/packages
USER pypiserver
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["pypi-server", "-p", "8080"]
CMD ["packages"]