Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.38 KB

README.md

File metadata and controls

55 lines (32 loc) · 1.38 KB

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