Building a docker container
Building a Docker container
Section titled “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.
Deployment
Section titled “Deployment”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.
Do not commit no-orm code
Section titled “Do not commit no-orm code”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.