Merge pull request #19 from keitaroinc/docker-entrypoint-fix

fixes wrong location check and call for the docker entrypoint
This commit is contained in:
Marko Bocevski 2020-08-24 08:03:04 +02:00 committed by GitHub
commit 841cbadc0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
# Run any startup scripts provided by images extending this one
if [[ -d "/docker-entrypoint.d" ]]
if [[ -d "${APP_DIR}/docker-entrypoint.d" ]]
then
for f in /docker-entrypoint.d/*; do
for f in ${APP_DIR}/docker-entrypoint.d/*; do
case "$f" in
*.sh) echo "$0: Running init file $f"; . "$f" ;;
*.py) echo "$0: Running init file $f"; python "$f"; echo ;;