Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 870 Bytes

readme.md

File metadata and controls

16 lines (10 loc) · 870 Bytes

Web2py Dockerfile

Run web2py as a Docker container.

Summary

This is a Dockerfile that builds an image based on ubuntu for running web2py as a Docker container. The file is inspired by O.S. Tezer's tutorial on containerizing Python web apps on the DigitalOcean community site.

How it works

  1. Install and run Docker.

  2. Once you are up and running with Docker, copy the Dockerfile to the root directory of your project and run Docker build:

sudo docker build -t [image name] .

  1. Run a container based on your newly created image

sudo docker run --name [container name] -p [host port]:[docker port] -i -t [image name]