Skip to content

Let's try and get a Flask App Ready for Docker on Azure

Notifications You must be signed in to change notification settings

timmyreilly/Flask-Ubuntu-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's Flask it Up!

Docker style

Clone:

$ git clone https://github.com/timmyreilly/Flask-Ubuntu-Docker.git

To Build:

$ docker build -t username/webappname:latest .

To Start Locally: (interactive)

$ docker run -i -p 8080:80 username/webappname:latest

To See the running instance:

$ docker ps

To Kill:

$ docker kill [thirsty_mayer or container id - found by running docker ps]

To Push to Docker:

docker push username/webappname:tag

To deploy to Azure:

  1. Create new resource by searching Linux App:
  1. Give the app a name, resource group and new app service plan. You can configure the container now or later, but if you do it later you'll have to remove the application settings for Node 4.5 or whatever has been defaulted.

Here you can see I set it to point to timmyreilly/flaskweb:latest this will pull the container containing very basic flask app that serves a photo and uses NGINX.

  1. Visit the completed site: http://yoursitename.azurewebsites.net !

If you used my container it should look like this:

References

Uwsgi-nginx-flask-docker image from tiangolo

About

Let's try and get a Flask App Ready for Docker on Azure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published