From 9dfbded5b80c58397e5f25550dc6fc920ac408b4 Mon Sep 17 00:00:00 2001 From: Jeff Leung Date: Sun, 14 Jan 2024 00:04:14 -0800 Subject: [PATCH] Update the readme file --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 331690f..a546f55 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,28 @@ To build and run the application, follow these steps: 4. Run the command `dotnet build` to build the application. This will compile the source code and prepare it for execution. 5. After a successful build, you can start the application by running `dotnet run`. 6. The application will start, and you can access the endpoints as specified. +### Building a Docker Image for the MVC Version + +### Building a Docker Image for the Minimal API Version + +To containerize the `AS1024.GeoFeed` version using Docker, you can follow these steps to build a Docker image: + +1. Open your terminal or command line interface. +2. Navigate to the root directory of this repository. +3. Execute the following Docker build command: ``docker buildx build --platform=linux/amd64,linux/arm64 -f .\AS1024.GeoFeed\Dockerfile .`` + +### Building a Docker Image for the Minimal API Version + +To containerize the `AS1024.GeoFeed.MinimalAPI` version using Docker, you can follow these steps to build a Docker image: + +1. Open your terminal or command line interface. +2. Navigate to the root directory of this repository. +3. Execute the following Docker build command: ``docker buildx build --platform=linux/amd64 -f .\AS1024.GeoFeed.MinimalAPI\Dockerfile.alpine-selfcontained .`` + +**Currently the minimal API version does not support being cross compiled for different CPU architectures. It is best built with the same CPU architecture where the build machine is targeting to.** + +Ensure you have Docker installed and configured on your machine before executing this command. This Docker image can then be used to deploy the application in containerized environments such as Kubernetes or Docker Compose setups. + ## Endpoints