Create a limited scope token for your Docker container and set it in your container.
Copy
RUN enkryptify configure --token <your-token> [--environment <environment-id>]
It’s recommended to use a limited scope token for Docker containers. This way you don’t need to specify the
environment ID. You cannot use the interactive flow for Docker containers.
You can also export the secrets during the build process. We do not recommend this approach because the secrets will be written to the container image. But in some cases this might be useful.
Copy
RUN enkryptify export --format=file > .envCMD ["your", "command"]