From 9b024967e64f46347d27cd631c839f5cdd2a8b5d Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Mon, 21 Jul 2025 21:22:05 +0200 Subject: [PATCH] Add docker build intructions --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13a6fa5..b342469 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Vegasco (**VE**hicle **GAS** **CO**nsumption) application. -Includes the backend (`src/Vegasco.Server.Api`) and the frontend (`src/Vegasco-Web`). Utilizes [Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/get-started/aspire-overview). +Includes the backend (`src/Vegasco.Server.Api`) and the frontend (`src/Vegasco-Web`). Uses [Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/get-started/aspire-overview). ## Getting Started @@ -67,3 +67,17 @@ creates a Postgres database as a docker container, and starts the Api with the c Ensure you have an identity provider set up, for example Keycloak, and configured the relevant options described above. Then, to run the application, ensure you have Docker running, then run either the `http` or `https` launch profile of the `Vegasco.Server.AppHost` project. + +## Deployment + +Build server by running in project root: + +```shell +docker build . -t docker.nuyken.dev/vegasco/api:main +``` + +Builder web client by running in `src/Vegasco-Web`: + +```shell +docker build -t docker.nuyken.dev/vegasco/web:main --build-arg CONFIGURATION=production . +```