Files
ResumeCustomizer/output/Docker/entrypoint.sh

19 lines
332 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
PUID=${PUID:-1000}
PGID=${PGID:-1000}
if ! command -v gosu >/dev/null 2>&1; then
echo "gosu is required but not installed" >&2
exit 1
fi
if [ -d /data ]; then
chown -R "${PUID}:${PGID}" /data
fi
export HOME=${HOME:-/tmp}
exec gosu "${PUID}:${PGID}" python3 /app/watch_and_convert.py