Merge pull request #657 from yuvipanda/abs-start

Make sure ENTRYPOINT is an absolute path
pull/663/head
Tim Head 2019-04-30 21:44:50 +02:00 zatwierdzone przez GitHub
commit e976627c1e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -668,7 +668,12 @@ class BaseImage(BuildPack):
return []
def get_start_script(self):
start = self.binder_path('./start')
start = self.binder_path('start')
if os.path.exists(start):
return start
# Return an absolute path to start
# This is important when built container images start with
# a working directory that is different from ${REPO_DIR}
# This isn't a problem with anything else, since start is
# the only path evaluated at container start time rather than build time
return os.path.join('${REPO_DIR}', start)
return None