File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 131131{% endfor %}
132132{% endif -%}
133133
134- # Add launch script
134+ # Add start script
135135{% if start_script -%}
136- RUN echo '#!/bin/bash \nexec {{ start_script }} $@ \n' > ${HOME}/launch
137- RUN chmod +x {{ start_script }}
138- {% else %}
139- RUN echo '#!/bin/bash \nexec $@ \n' > ${HOME}/launch
136+ RUN chmod +x "{{ start_script }}"
137+ ENTRYPOINT ["{{ start_script }}"]
140138{% endif -%}
141- RUN chmod +x ${HOME}/launch
142-
143- # Run launch script
144- ENTRYPOINT ["${HOME}/launch"]
145139
146140# Specify the default command to run
147141CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
@@ -358,7 +352,7 @@ def get_start_script(self):
358352 should not produce different results.
359353
360354 """
361- return []
355+ return ''
362356
363357 def binder_path (self , path ):
364358 """Locate a file"""
@@ -549,7 +543,7 @@ def get_post_build_scripts(self):
549543 return []
550544
551545 def get_start_script (self ):
552- launch = self .binder_path ('start' )
553- if os .path .exists (launch ):
554- return launch
546+ start = self .binder_path ('start' )
547+ if os .path .exists (start ):
548+ return start
555549 return ''
You can’t perform that action at this time.
0 commit comments