fixes wrong location check and call for the docker entrypoint
This commit is contained in:
parent
5b2f5cef9a
commit
ae70de6fdd
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Run any startup scripts provided by images extending this one
|
# Run any startup scripts provided by images extending this one
|
||||||
if [[ -d "/docker-entrypoint.d" ]]
|
if [[ -d "${APP_DIR}/docker-entrypoint.d" ]]
|
||||||
then
|
then
|
||||||
for f in /docker-entrypoint.d/*; do
|
for f in ${APP_DIR}/docker-entrypoint.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: Running init file $f"; . "$f" ;;
|
*.sh) echo "$0: Running init file $f"; . "$f" ;;
|
||||||
*.py) echo "$0: Running init file $f"; python "$f"; echo ;;
|
*.py) echo "$0: Running init file $f"; python "$f"; echo ;;
|
||||||
|
|
Loading…
Reference in New Issue