From 02df303ba709281eeda22a8a5cef621d9469e7ea Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:51:35 +0100 Subject: [PATCH] Fixed permissions when importing some scripts into Docker images --- docker/Dockerfile.development | 3 +-- docker/Dockerfile.production | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.development b/docker/Dockerfile.development index 545929a..6ec8dea 100644 --- a/docker/Dockerfile.development +++ b/docker/Dockerfile.development @@ -31,8 +31,7 @@ RUN echo "*/5 * * * * node /usr/src/app/scripts/expired-files.js > /dev/null 2>& RUN echo "*/5 * * * * node /usr/src/app/scripts/outdated-notifications > /dev/null 2>&1" >> /var/spool/cron/crontabs/node # Add wait script to wait for other services to be ready -ADD https://github.com/ufoscout/docker-compose-wait/releases/latest/download/wait /wait -RUN chmod +x /wait +ADD --chmod=0755 https://github.com/ufoscout/docker-compose-wait/releases/latest/download/wait /wait # Use non-root user USER node diff --git a/docker/Dockerfile.production b/docker/Dockerfile.production index 69f66c1..4a6ee86 100644 --- a/docker/Dockerfile.production +++ b/docker/Dockerfile.production @@ -31,8 +31,7 @@ RUN echo "*/5 * * * * node /usr/src/app/scripts/expired-files.js > /dev/null 2>& RUN echo "*/5 * * * * node /usr/src/app/scripts/outdated-notifications > /dev/null 2>&1" >> /var/spool/cron/crontabs/node # Add wait script to wait for other services to be ready -ADD https://github.com/ufoscout/docker-compose-wait/releases/latest/download/wait /wait -RUN chmod +x /wait +ADD --chmod=0755 https://github.com/ufoscout/docker-compose-wait/releases/latest/download/wait /wait # Use non-root user USER node