$ git clone https://github.com/timmyreilly/Flask-Ubuntu-Docker.git
$ docker build -t username/webappname:latest .
$ docker run -i -p 8080:80 username/webappname:latest
$ docker ps
$ docker kill [thirsty_mayer or container id - found by running docker ps]
docker push username/webappname:tag
- Create new resource by searching Linux App:
- 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.
- Visit the completed site: http://yoursitename.azurewebsites.net !
If you used my container it should look like this: