You are browsing documentation for an outdated version.
See the latest documentation here.
Build your own Docker images
Kong is distributed as prebuilt
rpm packages, in addition to official Docker images hosted on DockerHub
Kong builds and verifies Debian and RHEL images for use in production.
Alpine images are provided for development purposes only as they contain development tooling such as
git for plugin development purposes.
The Debian and RHEL images are built with minimal dependencies (as of Kong Gateway 3.0) and run through automated security scanners before being published. Any vulnerabilities detected in supported images will be addressed in the next available patch release.
If you would like to build your own images to further customise the base image and any dependencies, follow the instructions below:
- Download docker-entrypoint.sh script from
docker-kong and make it executable:
chmod +x docker-entrypoint.sh
- Download the Kong Gateway package:
Dockerfile, ensuring you replace the filename by the first
COPY with the name of the Kong Gateway file you downloaded in step 2:
Build your image:
docker build --platform linux/amd64 --no-cache -t kong-image .
Test that the image built correctly:
docker run -it --rm kong-image kong version
- To run Kong Gateway and process traffic, follow the Docker install instructions, replacing the image name with your custom name.