Fix check for `docker-entrypoint.d`

The entrypoint script checks for the existence of `docker-entrypoint.d` in the CWD, but then run the scripts in `/docker-entrypoint.d`. 

This causes the scripts to either not run at all or fail if an inheriting image changes the `WORKDIR`. 

This fix makes sure the directory is always expected in the filesystem root.
This commit is contained in:
Shahar Evron 2019-10-03 12:00:34 +03:00 committed by GitHub
parent b726c3a1c6
commit f80c60f835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
python prerun.py python prerun.py
# 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 "/docker-entrypoint.d" ]]
then then
for f in /docker-entrypoint.d/*; do for f in /docker-entrypoint.d/*; do
case "$f" in case "$f" in