All checks were successful
Build and Push Docker Images / build-portal (push) Successful in 2m9s
Build and Push Docker Images / build-infra (docker/db, monacousa-db) (push) Successful in 1m8s
Build and Push Docker Images / build-infra (docker/kong, monacousa-kong) (push) Successful in 25s
Build and Push Docker Images / build-infra (docker/migrate, monacousa-migrate) (push) Successful in 1m10s
- Add chown to give kong user write permissions to /var/lib/kong - Fixes 'can't create /var/lib/kong/kong.yml: Permission denied' error - Allows entrypoint script to generate kong.yml from template Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
14 lines
362 B
Docker
14 lines
362 B
Docker
FROM kong:2.8.1
|
|
|
|
USER root
|
|
COPY kong.yml.template /var/lib/kong/kong.yml.template
|
|
COPY --chmod=755 docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
|
|
|
|
# Give kong user write permissions to /var/lib/kong so it can generate kong.yml
|
|
RUN chown -R kong:kong /var/lib/kong
|
|
|
|
USER kong
|
|
|
|
ENTRYPOINT ["/docker-entrypoint-wrapper.sh"]
|
|
CMD ["kong", "docker-start"]
|