From 4b49119cdd5925fad3d5706bb4c902fc3ba93859 Mon Sep 17 00:00:00 2001 From: Patrick Schlangen Date: Sun, 10 Dec 2023 20:42:58 +0100 Subject: [PATCH] docker: Explicitly set executable permissions --- Dockerfile | 1 + api/Dockerfile | 2 ++ frontend/.dockerignore | 7 +++++++ frontend/Dockerfile | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 frontend/.dockerignore diff --git a/Dockerfile b/Dockerfile index e4525882..eee21f1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ RUN rm -rf /opt/chronos/include RUN rm -rf /opt/chronos/share/man RUN rm -f /opt/chronos/bin/thrift RUN rm -f /opt/chronos/bin/curl-config +RUN chmod 0755 /opt/chronos/bin/chronos-entry CMD "/opt/chronos/bin/chronos-entry" diff --git a/api/Dockerfile b/api/Dockerfile index f380f850..4f838c4d 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -15,6 +15,8 @@ RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" COPY ./docker/msmtprc /etc/msmtprc COPY ./docker/api-entry /usr/local/bin/ +RUN chmod 0755 /usr/local/bin/api-entry + COPY ./ /var/www/html/ RUN rm -rf /var/www/html/docker diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 00000000..7dee514f --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,7 @@ +.DS_Store +.vscode +CMakeCache.txt +CMakeFiles +/build +/node_modules +/src/utils/Config.js diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a711951f..da38731a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -9,7 +9,7 @@ COPY ./ /src/cron-job.org/frontend COPY ./docker/Config.js /src/cron-job.org/frontend/src/utils/ COPY ./docker/update-frontend-config /usr/local/bin/ -RUN /usr/local/bin/update-frontend-config +RUN chmod 0755 /usr/local/bin/update-frontend-config && /usr/local/bin/update-frontend-config WORKDIR /src/cron-job.org/frontend RUN npm ci && npm run build