Mercurial > hg > index.fcgi > www > www-1
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c0b8d3a990fe |
---|---|
1 # Use the official lightweight Python image. | |
2 # https://hub.docker.com/_/python | |
3 FROM python:3.6-slim | |
4 | |
5 # Copy local code to the container image. | |
6 ENV APP_HOME /app | |
7 WORKDIR $APP_HOME | |
8 COPY . ./ | |
9 | |
10 # Install production dependencies. | |
11 RUN pip install -r requirements.pip | |
12 | |
13 # Run the web service on container startup. Here we use the gunicorn | |
14 # webserver, with one worker process and 8 threads. | |
15 # For environments with multiple CPU cores, increase the number of workers | |
16 # to be equal to the cores available. | |
17 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 cs_flask_app:app |