Code Monkey home page Code Monkey logo

azurconatinerapp-webserver's Introduction

How Create a Web app in azur using the Container App

introduction

This repository contains the source code and instructions for creating a web app in Azure using the Container App service. The web app is built using Docker ๐Ÿณ, and the container image is stored in an Azure Container Registry (ACR) ๐Ÿ›๏ธ. Follow the steps below to set up and deploy the web app.

Steps

  1. Create Azure Container Registry (ACR)
az acr create --resource-group <your-resource-group> --name <your-acr-name> --sku Basic
  1. Clone the Repository
git clone https://github.com/Mouhamed-dridi/thebatman.git
  1. Create Dockerfile Navigate to the project directory and create a Dockerfile (e.g., MyDockerfile) using your preferred text editor (e.g., nano).
cd thebatman
nano MyDockerfile
  1. Build Docker Image and Push to ACR
az acr build --image apache --registry <your-acr-name> --file MyDockerfile .
  1. Deploy Container to Azure Container Instance
az container create --resource-group <your-resource-group> --name apache --image <your-acr-name>/apache --registry-login-server <your-acr-name> --dns-name-label <your-dns-name-label> --ports 80
  1. Test Container Execution
az container exec --resource-group <your-resource-group> --name apache --exec-command "pwd"

Conclusion

Congratulations! You have successfully created a web app in Azure using the Container App service. For more details and customization options, refer to the official Azure Container Instances documentation.

azurconatinerapp-webserver's People

Contributors

mouhamed-dridi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.