Files
projects/Dockers/strapi/entrypoint.sh
T
Bram d3888cf96e
Build and Push Docker Images / build-and-push (push) Successful in 20s
try for mount
2025-05-08 16:51:23 +02:00

13 lines
321 B
Bash

#!/bin/sh
# If /opt/app/package.json does not exist, copy the app skeleton into /opt/app
if [ ! -f /opt/app/package.json ]; then
echo "Initializing /opt/app with application files..."
cp -R /opt/app-template/* /opt/app/
cp -R /opt/app-template/.[!.]* /opt/app/ 2>/dev/null || true
fi
cd /opt/app
exec "$@"