annotate pics3/Dockerfile @ 143:627316f64e79

myrss2: FEEDS: Add wolfstreet.com
author paulo
date Wed, 15 May 2024 00:29:19 -0700
parents
children
rev   line source
paulo@132 1 # Use the official lightweight Python image.
paulo@132 2 # https://hub.docker.com/_/python
paulo@132 3 FROM python:3.6-slim
paulo@132 4
paulo@132 5 # Copy local code to the container image.
paulo@132 6 ENV APP_HOME /app
paulo@132 7 WORKDIR $APP_HOME
paulo@132 8 COPY . ./
paulo@132 9
paulo@132 10 # Install production dependencies.
paulo@132 11 RUN pip install -r requirements.pip
paulo@132 12
paulo@132 13 # Run the web service on container startup. Here we use the gunicorn
paulo@132 14 # webserver, with one worker process and 8 threads.
paulo@132 15 # For environments with multiple CPU cores, increase the number of workers
paulo@132 16 # to be equal to the cores available.
paulo@132 17 CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 pics_flask_app:app