Docker
# Development build
docker build --tag {{cookiecutter.project_name}} --file docker/Dockerfile --target development .
# Production build
docker build --tag {{cookiecutter.project_name}} --file docker/Dockerfile --target production .
- To run command inside the container:
docker run -it {{cookiecutter.project_name}}:latest bash
# Temporary container
docker run --rm -it {{cookiecutter.project_name}}:latest bash
docker compose up -d {{cookiecutter.project_name}}-dev --watch
docker compose up -d {{cookiecutter.project_name}}-prod