How to configure my docker pypi server to use pypiserver[cache]?

365 Views Asked by At

I'm using docker pypi server as my internal pip server. I have thousands of requests and sometimes my server fails (i.e. reaches 5 timeouts)

pypiserver specifies an option that can help with that: using cache. How can I make my docker run with this option enabled (OR is there another way to handle the request load better)?

  • The docker tutorial specifies a cache-related command : --cache-control AGE but it has nothing to do with the pypi caching I want.

  • Here is my docker run command: sudo docker run -p 80:8080 -v /home/bla/.pypi_server/packages:/data/packages pypiserver/pypiserver:latest

0

There are 0 best solutions below