Skip to content

Building a docker container

You can see an example script in the example server here which builds a Docker container.

The script runs no-orm generate and then the Dockerfile copies these across. You can also make the Dockerfile run no-orm generate.

This script and Dockerfile can then be run in a CI pipeline to publish to a container registry.

Once the image is in the container registry, it can be run in a test suite and eventually in a production environment.

This should be generated in every instance of your server.

Note that if there is database schema drift between your local setup and a production environment, you will likely get runtime errors in your server.