<@U04UQ68083H> how do you build ory kratos image w...
# ory-copilot
c
@chilly-king-10285 how do you build ory kratos image with distrolless mode?
c
A message from kapa.ai
Ory Kratos images are published on Docker Hub with various tags. One of these tags is
v1.1.0-distroless
which represents a distroless image. This image does not support SQLite. You can pull this image using the following command:
Copy code
bash docker pull oryd/kratos:v1.1.0-distroless
If you want to build a custom Docker image with your configuration files, you can use the official Kratos Docker images as the base image and add your configuration file(s). Here is an example:
Copy code
bash FROM oryd/kratos:v1.1.0-distroless COPY contrib/quickstart/kratos/email-password/kratos.yml /home/ory
This will create a new Docker image based on the distroless Kratos image and add your configuration file to it. Please note that the
latest
tag should not be used in production as it can lead to unexpected updates with incompatible versions. Always use a specific version tag. Sources: - [Docker Images Guide](https://www.ory.sh/docs/kratos/guides/docker) - [Creating Custom Docker Images](https://www.ory.sh/docs/kratos/guides/docker#creating-custom-docker-images)