In project root directory, assuming you used export $(cat .env | xargs)
:
docker build -t ducor-backend .
docker run -p $DUCOR_API_PORT:$DUCOR_API_PORT ducor-backend
The docker image is build upon pm2 container, installs python and typescript (needed for build and run respectively).
Tests are run locally with npm test
.
For tests:
docker-compose -f docker-compose.test.yml up