fix: use COPY --chmod for Kong entrypoint (non-root image)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-21 23:24:37 -08:00
parent 48e47975ca
commit 7dd7de4a22
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
FROM kong:3.7
COPY config/kong.yml /etc/kong/kong.yml.tpl
COPY config/docker-entrypoint.sh /custom-entrypoint.sh
RUN chmod +x /custom-entrypoint.sh
COPY --chmod=755 config/docker-entrypoint.sh /custom-entrypoint.sh
ENV KONG_DATABASE=off
ENV KONG_DECLARATIVE_CONFIG=/etc/kong/kong.yml