This is a lightweight docker image (75.3 MB) for Pypi v1.1.10, a Python package repository
docker pull vando/pypi
docker run -p 8080:8080 \
-v /mnt/pypi-pkgs:/mnt/pkgs \
-d --restart=always --name pypi vando/pypi
It doesn't include support for htpasswd file because I recommend that you use Pypi through a webserver.
Otherwise, you can install libpass in the build process adding
RUN pip install libpass