Mercurial > hg > index.fcgi > www > www-1
diff myrss2/Dockerfile @ 108:cffd95813b82
add myrss2
author | paulo |
---|---|
date | Sun, 24 May 2020 00:22:05 -0700 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/myrss2/Dockerfile Sun May 24 00:22:05 2020 -0700 1.3 @@ -0,0 +1,17 @@ 1.4 +# Use the official lightweight Python image. 1.5 +# https://hub.docker.com/_/python 1.6 +FROM python:3.6-slim 1.7 + 1.8 +# Copy local code to the container image. 1.9 +ENV APP_HOME /app 1.10 +WORKDIR $APP_HOME 1.11 +COPY . ./ 1.12 + 1.13 +# Install production dependencies. 1.14 +RUN pip install -r requirements.pip 1.15 + 1.16 +# Run the web service on container startup. Here we use the gunicorn 1.17 +# webserver, with one worker process and 8 threads. 1.18 +# For environments with multiple CPU cores, increase the number of workers 1.19 +# to be equal to the cores available. 1.20 +CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 myrss_flask:flask_app