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.
Our 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 the docker-entrypoint.sh script from
docker-kong and make it executable with
chmod +x docker-entrypoint.sh
Download the .deb, .rpm or .apk (amd64, arm64) as required
Dockerfile with the following contents:
Build your image with
docker build --no-cache -t kong-your-tag .
Test that the image built correctly with
docker run -it kong-your-tag kong version
To run Kong Gateway and process traffic, follow the Docker install instructions, replacing the image name with your custom name