Skip to content

Commit 005a623

Browse files
authored
Update Dockerfile to set entrypoint script permissions
1 parent d736f5d commit 005a623

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ RUN mkdir -p /var/www/html/monarc/data/cache \
105105
/var/www/html/monarc/data/DoctrineORMModule/Proxy \
106106
/var/www/html/monarc/data/import/files
107107

108-
# Copy entrypoint script
109-
COPY docker-entrypoint.sh /usr/local/bin/
110-
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
108+
# Copy entrypoint script with executable permissions
109+
COPY --chmod=755 docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
111110

112111
EXPOSE 80
113112

114-
ENTRYPOINT ["docker-entrypoint.sh"]
113+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
115114
CMD ["apachectl", "-D", "FOREGROUND"]

0 commit comments

Comments
 (0)