Add entrypoint to allow file override.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
This commit is contained in:
parent
23b265a55d
commit
866bc2ed9e
2 changed files with 14 additions and 0 deletions
9
entrypoint.sh
Normal file
9
entrypoint.sh
Normal 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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue