Skip to content

Instantly share code, notes, and snippets.

@mehuled
Last active April 14, 2024 14:03
Show Gist options
  • Save mehuled/5a3dd766dfa9ba4eb53387c93f987930 to your computer and use it in GitHub Desktop.
Save mehuled/5a3dd766dfa9ba4eb53387c93f987930 to your computer and use it in GitHub Desktop.
FROM kong/kong:latest
# Ensure any patching steps are executed as root user
USER root
RUN apt-get update
RUN apt-get install -y git curl
RUN mkdir -p /usr/local/kong/plugins
# Add custom plugin to the image
COPY kong-plugin-add-header /usr/local/kong/plugins/kong-plugin-add-header
ENV KONG_LUA_PACKAGE_PATH=/usr/local/kong/plugins/kong-plugin-add-header/?.lua;;
ENV KONG_PLUGINS=bundled,add-header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment