Docker project for a flask app under nginx
1.5K
This is the repo for running a python app under nginx in a docker container
Many of the docker repo's out there use flask local server in their images. This repo is for a more production ready environment.
This repo will be built in stages It will contain a demo app written using the Flask framework
I will be using this Flask app for the repo
copy nginx key
add update sources
update and install dependencies
copy requirements.txt
install pip dependencies
copy files across:
run.pyuwsgi.iniapp.confstart.shrm nginx default configuration
simlink app.conf to nginx configuration /etc/nginx/conf.d/
copy app
make start.sh executable
set workdir
expose port 80
run cmd
Content type
Image
Digest
Size
155.8 MB
Last updated
almost 11 years ago
docker pull craicerjack/nginx-flask