mark run file as executable

This commit is contained in:
ThePhD 2017-12-29 20:28:10 -05:00
parent 6aad9956ce
commit 1444d72b56

View File

@ -36,7 +36,6 @@ RUN apt -y install sudo zsh
RUN apt -y dist-upgrade RUN apt -y dist-upgrade
RUN mkdir -p build-sol2/Debug build-sol2/Release RUN mkdir -p build-sol2/Debug build-sol2/Release
RUN chmod +x /sol2/scripts/preparation.linux.sh RUN chmod +x /sol2/scripts/preparation.linux.sh
RUN chmod +x /sol2/scripts/run.linux.sh
RUN ["/usr/bin/env", "zsh", "-c", "./sol2/scripts/preparation.linux.sh"] RUN ["/usr/bin/env", "zsh", "-c", "./sol2/scripts/preparation.linux.sh"]
# CMD/ENTRYPOINT is different from RUN # CMD/ENTRYPOINT is different from RUN
# these are done on a per-instantiation and essentially describe # these are done on a per-instantiation and essentially describe
@ -44,4 +43,4 @@ RUN ["/usr/bin/env", "zsh", "-c", "./sol2/scripts/preparation.linux.sh"]
# gets "saved" in... # gets "saved" in...
# it only runs the last CMD/ENTRYPOINT as the default behavior: # it only runs the last CMD/ENTRYPOINT as the default behavior:
# multiple CMDs will not be respected # multiple CMDs will not be respected
CMD ["/usr/bin/env", "zsh", "-c", "./sol2/scripts/run.linux.sh"] CMD ["/usr/bin/env", "zsh", "-c", "chmod +x /sol2/scripts/run.linux.sh && ./sol2/scripts/run.linux.sh"]