Giter Club home page Giter Club logo

deploymlmodelazure's Introduction

Deployment Of Flask App on Azure

Azure Web Apps provides a platform to build an App in Azure without having to deploy, configure and maintain your own Azure VM's. You can build Web App using the ASP.NET, PHP, Node. js and Python. They also integrate common development environments which could be Visual Studio and GitHub.

To Review the Implemented Deployment Please visit     https://deploymodel.azurewebsites.net/

STEPS TO FOLLOW

1. Create a Directory Containing FlaskApp, Index.html and requirements.txt   .

NOTE   :   To generate requirements .txt , go to path in command prompt or Terminal and type pipreqs.

2. Create a Dockerfile.

FROM python:3.7-slim

WORKDIR /app

ADD . /app

RUN pip install --trusted-host pypi.python.org -r requirements.txt

EXPOSE 5000

ENV NAME OpentoAll

CMD ["python","app.py"]

3. Build Your Docker Image.

docker buid -t imagename:tag

docker buid -t azuremlr:latest . 

For More details visit Dockerizing Flask App

4 . Tag your Docker Image and push to docker hub.

docker tag azuremlr tharun435/myrepo:1.0

NOTE   :    Please Create your account in Docker Hub if you don't have a one

5 .  Push your Image to Your Repositories in Docker Hub .

docker push tharun435/myrepo:1.0

6.   Go to your Azure account , Web services , click add.

  • Create a new Resource group and select Docker Container to Publish . Click Next:Docker.

7.  Select Image Source as Docker Hub and give your Image name you pushed to the docker hub in step 5   .

8. Click next Monitoring and go to tags, give port and value .

9.   Click Review and create .

Succesfully the Web app is created and a link will be generated like this. https://deploymodel.azurewebsites.net/


References

Thank You :D

I have used many online resources while creating the application and I would like to thank them .   Hope you found it insightful.If you have any queries you can mail me at : [email protected] . I would love to hear feedback from you to improvise it and make it better!

deploymlmodelazure's People

Contributors

vaishnavpuram27 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.