Add entrypoint to allow file override.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s

This commit is contained in:
Cameron Redmore 2025-04-18 16:51:10 +01:00
parent 23b265a55d
commit 866bc2ed9e
2 changed files with 14 additions and 0 deletions

9
entrypoint.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# Check if the folder /extra exists, if so, copy all files from /extra to /usr/share/nginx/html
if [ -d "/extra" ]; then
echo "Copying files from /extra to /usr/share/nginx/html"
cp -r /extra/* /usr/share/nginx/html/
fi
echo "Executing command: $@"
exec "$@"