Skip to content

Commit

Permalink
Merge pull request #657 from yuvipanda/abs-start
Browse files Browse the repository at this point in the history
Make sure ENTRYPOINT is an absolute path
  • Loading branch information
betatim authored Apr 30, 2019
2 parents e352774 + 4dd32f3 commit e976627
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions repo2docker/buildpacks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,12 @@ def get_post_build_scripts(self):
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

0 comments on commit e976627

Please sign in to comment.