From 1444d72b564ad74787a5f0b7029ce8055d7b0ad7 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 29 Dec 2017 20:28:10 -0500 Subject: [PATCH] mark run file as executable --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 843eda1f..dd5b4c26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,6 @@ RUN apt -y install sudo zsh RUN apt -y dist-upgrade RUN mkdir -p build-sol2/Debug build-sol2/Release 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"] # CMD/ENTRYPOINT is different from RUN # 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... # it only runs the last CMD/ENTRYPOINT as the default behavior: # 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"]