nginx-proxy-manager-zh/docker/rootfs/etc/s6-overlay/s6-rc.d/frontend/run
2023-02-24 18:31:46 +10:00

17 lines
285 B
Plaintext
Executable File

#!/command/with-contenv bash
set -e
# This service is DEVELOPMENT only.
if [ "$DEVELOPMENT" == "true" ]; then
CI=true
HOME=/tmp/npmuserhome
export CI
export HOME
cd /app/frontend || exit 1
s6-setuidgid npmuser yarn install
exec s6-setuidgid npmuser yarn start
else
exit 0
fi