Skip to main content
By default, the official Mage docker images in DockerHub are using the root users. For production deployment, it’s recommended to use non-root users in the docker image to restrict access to the system for better security. Here is the Dockerfile template that you can use to build your custom docker image that runs Mage as non-root user.