Note: OpenShift wants the main branch to be named master by default, you have two options:
- Push to origin/master to deploy
- Change the setting in Openshift to main:
Edit BuildConfig ==> Show advanced git options ==> Git reference:main
See also: https://fastapi.tiangolo.com/deployment/docker/
Rename .env-example to .env to override the MODE=productionset in the Dockerfile. Note that this needs a valueless declaration of MODE in docker-compose.yml
To run the container locally:
docker-compose up --build