Dockerfile for basic NGINX UWSGI gateway and static server
- Build
docker build -t globz/nginx-uwsgi-gateway .
- Run (adds Access-Control-Allow-Origin header for 'https://$FRONTEND_HOST when FRONTEND_HOST is defined)
docker run -p 8000:80 -e APP_HOST=$APP_HOST -e APP_PORT=$APP_PORT -e APP_NAME=$APP_NAME -e FRONTEND_HOST=$FRONTEND_HOST -v $PWD/static:/usr/nginx/html/$APP_NAME/static globz/nginx-uwsgi-gateway