Mercurial > hg > index.fcgi > www > www-1
annotate cs/Dockerfile @ 144:90f3021e3137
myrss2: FEEDS: Remove longform.org; add propublic.org
author | paulo |
---|---|
date | Tue, 28 May 2024 06:23:58 +0000 |
parents | |
children |
rev | line source |
---|---|
paulo@131 | 1 # Use the official lightweight Python image. |
paulo@131 | 2 # https://hub.docker.com/_/python |
paulo@131 | 3 FROM python:3.6-slim |
paulo@131 | 4 |
paulo@131 | 5 # Copy local code to the container image. |
paulo@131 | 6 ENV APP_HOME /app |
paulo@131 | 7 WORKDIR $APP_HOME |
paulo@131 | 8 COPY . ./ |
paulo@131 | 9 |
paulo@131 | 10 # Install production dependencies. |
paulo@131 | 11 RUN pip install -r requirements.pip |
paulo@131 | 12 |
paulo@131 | 13 # Run the web service on container startup. Here we use the gunicorn |
paulo@131 | 14 # webserver, with one worker process and 8 threads. |
paulo@131 | 15 # For environments with multiple CPU cores, increase the number of workers |
paulo@131 | 16 # to be equal to the cores available. |
paulo@131 | 17 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 cs_flask_app:app |