We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e352774 + 4dd32f3 commit e976627Copy full SHA for e976627
repo2docker/buildpacks/base.py
@@ -668,7 +668,12 @@ def get_post_build_scripts(self):
668
return []
669
670
def get_start_script(self):
671
- start = self.binder_path('./start')
+ start = self.binder_path('start')
672
if os.path.exists(start):
673
- return start
+ # Return an absolute path to start
674
+ # This is important when built container images start with
675
+ # a working directory that is different from ${REPO_DIR}
676
+ # This isn't a problem with anything else, since start is
677
+ # the only path evaluated at container start time rather than build time
678
+ return os.path.join('${REPO_DIR}', start)
679
return None
0 commit comments