1
0
mirror of https://github.com/pypiserver/pypiserver synced 2025-02-22 19:19:37 +01:00
pypiserver/entrypoint.sh
Norman Schenck 12ae6c118a
Update Dockerfile. Update docker base images. (#330)
Co-authored-by: Matthew Planchard <mplanchard@users.noreply.github.com>
2020-10-03 17:00:47 -05:00

16 lines
280 B
Bash

#!/bin/ash
set -euo pipefail
chown -R pypiserver:pypiserver /data
if [ "$@" = "" ]; then
# default CMD
echo "Set default option '/data/packages'"
set -- " /data/packages"
else
#
echo "Using custom CMD: $@"
fi
exec gosu pypiserver pypi-server -p "$PORT" $@