2020-10-10 15:12:06 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-10-04 00:00:47 +02:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-10-06 03:13:16 +02:00
|
|
|
# chown the VOLUME mount set in the dockerfile
|
|
|
|
# If you're using an alternative directory for packages,
|
|
|
|
# you'll need to ensure that pypiserver has read and
|
|
|
|
# write access to that directory
|
|
|
|
chown -R pypiserver:pypiserver /data/packages
|
2020-10-04 00:00:47 +02:00
|
|
|
|
|
|
|
exec gosu pypiserver pypi-server -p "$PORT" $@
|