Mercurial > hg > index.fcgi > www > www-1
annotate laterlinks3/Dockerfile @ 118:65db090a697e
laterlinks3: add GCS support
author | paulo |
---|---|
date | Fri, 18 Sep 2020 01:13:29 -0700 |
parents | |
children |
rev | line source |
---|---|
paulo@118 | 1 # Use the official lightweight Python image. |
paulo@118 | 2 # https://hub.docker.com/_/python |
paulo@118 | 3 FROM python:3.6-slim |
paulo@118 | 4 |
paulo@118 | 5 # Copy local code to the container image. |
paulo@118 | 6 ENV APP_HOME /app |
paulo@118 | 7 WORKDIR $APP_HOME |
paulo@118 | 8 COPY . ./ |
paulo@118 | 9 |
paulo@118 | 10 # Install production dependencies. |
paulo@118 | 11 RUN pip install -r requirements.pip |
paulo@118 | 12 |
paulo@118 | 13 # Run the web service on container startup. Here we use the gunicorn |
paulo@118 | 14 # webserver, with one worker process and 8 threads. |
paulo@118 | 15 # For environments with multiple CPU cores, increase the number of workers |
paulo@118 | 16 # to be equal to the cores available. |
paulo@118 | 17 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 laterlinks_flask_app:app |