Docker
A Docker solution is available for both development and production deployment.
Get Started
Section titled “Get Started”-
Create a new container.
Terminal window git clone git@github.com:cmjoseph07/frizzante-docker.gitcd frizzante-dockerdocker compose build --pull --no-cache -
Start the container.
Terminal window docker compose up -d -
Attach to this container with your IDE or directly with a shell.
Terminal window docker exec -it frizzante-start sh -
Start development.
Terminal window make dev -
Build.
Terminal window make buildThis will create a
.gen/bin/app
standalone executable.Directory.gen
Directorybin
- app
Production with Docker
Section titled “Production with Docker”You have different options for deploying to the production environment using docker.
-
Build and run production binary inside container
Terminal window # Inside the containermake build./.gen/bin/app -
Build production Docker image
Terminal window docker build --target frizzante_prod -t my-app:prod .docker run -p 8080:8080 my-app:prod -
Use Docker Compose for production
Terminal window docker compose -f compose.yaml -f compose.prod.yaml up -d --build