Merge pull request #1903 from oktett-8/Fix-entrypoint-permission

Fix entrypoint.sh permission
This commit is contained in:
RocketQuack 2026-05-09 17:25:21 +02:00 committed by GitHub
commit 5abd3c0f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -163,7 +163,7 @@ VOLUME [ \
USER root USER root
# This entrypoint script link build assets of the image to the mounted sites volume at container initialization # This entrypoint script link build assets of the image to the mounted sites volume at container initialization
COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh
USER frappe USER frappe
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View file

@ -47,7 +47,7 @@ VOLUME [ \
USER root USER root
# This entrypoint script link build assets of the image to the mounted sites volume at container initialization # This entrypoint script link build assets of the image to the mounted sites volume at container initialization
COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh
USER frappe USER frappe
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View file

@ -82,6 +82,7 @@ RUN useradd -ms /bin/bash frappe \
COPY resources/core/nginx/nginx-template.conf /templates/nginx/frappe.conf.template COPY resources/core/nginx/nginx-template.conf /templates/nginx/frappe.conf.template
COPY resources/core/nginx/nginx-entrypoint.sh /usr/local/bin/nginx-entrypoint.sh COPY resources/core/nginx/nginx-entrypoint.sh /usr/local/bin/nginx-entrypoint.sh
COPY resources/core/nginx/security_headers.conf /etc/nginx/snippets/security_headers.conf COPY resources/core/nginx/security_headers.conf /etc/nginx/snippets/security_headers.conf
RUN chmod 755 /usr/local/bin/nginx-entrypoint.sh
FROM base AS build FROM base AS build
@ -153,7 +154,7 @@ VOLUME [ \
USER root USER root
# This entrypoint script link build assets of the image to the mounted sites volume at container initialization # This entrypoint script link build assets of the image to the mounted sites volume at container initialization
COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh COPY resources/core/main-entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh
USER frappe USER frappe
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]