Skip to content

Commit

Permalink
Fixed permissions when importing some scripts into Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Nov 22, 2024
1 parent 84da0f0 commit 02df303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02df303

Please sign in to comment.