annotate myw2/Dockerfile @ 134:e3dd2ebf1299

myrss2: FEEDS: add PBS NewHour, The Drive; update Nautilus; remove Roads & Kingdom
author paulo
date Mon, 14 Mar 2022 08:10:48 +0000
parents
children
rev   line source
paulo@112 1 # Use the official lightweight Python image.
paulo@112 2 # https://hub.docker.com/_/python
paulo@112 3 FROM python:3.6-slim
paulo@112 4
paulo@112 5 # Copy local code to the container image.
paulo@112 6 ENV APP_HOME /app
paulo@112 7 WORKDIR $APP_HOME
paulo@112 8 COPY . ./
paulo@112 9
paulo@112 10 # Install production dependencies.
paulo@112 11 RUN pip install -r requirements.pip
paulo@112 12
paulo@112 13 # Run the web service on container startup. Here we use the gunicorn
paulo@112 14 # webserver, with one worker process and 8 threads.
paulo@112 15 # For environments with multiple CPU cores, increase the number of workers
paulo@112 16 # to be equal to the cores available.
paulo@112 17 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 myw_flask_app:app