Skip to content

Add Dockerfile and Azure deployment configuration#9

Open
onyxg wants to merge 1 commit into
mainfrom
add-docker-azure-deployment
Open

Add Dockerfile and Azure deployment configuration#9
onyxg wants to merge 1 commit into
mainfrom
add-docker-azure-deployment

Conversation

@onyxg

@onyxg onyxg commented Jan 5, 2025

Copy link
Copy Markdown
Owner

Add Dockerfile and Azure deployment configuration for containerization.

  • Dockerfile

    • Use golang:1.23 as the base image
    • Set the working directory inside the container
    • Copy the application code into the container
    • Build the Go application inside the container
    • Set the entrypoint to run the application
  • azure-deploy.yaml

    • Create an Azure deployment configuration file
    • Define the container registry and image details
    • Specify the resource group and container instance details
    • Include environment variables for HTTP and HTTP2 ports
    • Add a health check endpoint configuration
  • README.md

    • Add prerequisites section including Go, Docker, and Azure CLI
    • Add instructions for running the application locally
    • Add instructions for building the Docker container
    • Add instructions for deploying the container to Azure

For more details, open the Copilot Workspace session.

Add Dockerfile and Azure deployment configuration for containerization.

* **Dockerfile**
  - Use `golang:1.23` as the base image
  - Set the working directory inside the container
  - Copy the application code into the container
  - Build the Go application inside the container
  - Set the entrypoint to run the application

* **azure-deploy.yaml**
  - Create an Azure deployment configuration file
  - Define the container registry and image details
  - Specify the resource group and container instance details
  - Include environment variables for HTTP and HTTP2 ports
  - Add a health check endpoint configuration

* **README.md**
  - Add prerequisites section including Go, Docker, and Azure CLI
  - Add instructions for running the application locally
  - Add instructions for building the Docker container
  - Add instructions for deploying the container to Azure

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/onyxg/http_demo?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant