# HG changeset patch # User paulo # Date 1642670926 28800 # Node ID 99e4022eae522c2929c94f8fd34fa4e328c00f8a # Parent 221d6ea7c6c81effa5d6cf336bf041fb8a6f284a pics3: add Dockerfile and requirements.pip diff -r 221d6ea7c6c8 -r 99e4022eae52 pics3/Dockerfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pics3/Dockerfile Thu Jan 20 01:28:46 2022 -0800 @@ -0,0 +1,17 @@ +# Use the official lightweight Python image. +# https://hub.docker.com/_/python +FROM python:3.6-slim + +# Copy local code to the container image. +ENV APP_HOME /app +WORKDIR $APP_HOME +COPY . ./ + +# Install production dependencies. +RUN pip install -r requirements.pip + +# Run the web service on container startup. Here we use the gunicorn +# webserver, with one worker process and 8 threads. +# For environments with multiple CPU cores, increase the number of workers +# to be equal to the cores available. +CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 pics_flask_app:app diff -r 221d6ea7c6c8 -r 99e4022eae52 pics3/requirements.pip --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pics3/requirements.pip Thu Jan 20 01:28:46 2022 -0800 @@ -0,0 +1,34 @@ +cachetools==4.2.4 +certifi==2021.10.8 +cffi==1.14.3 +chardet==4.0.0 +charset-normalizer==2.0.10 +click==8.0.3 +dataclasses==0.8 +Flask==2.0.2 +google-api-core==2.4.0 +google-auth==2.3.3 +google-cloud-core==2.2.2 +google-cloud-storage==2.0.0 +google-crc32c==1.3.0 +google-resumable-media==2.1.0 +googleapis-common-protos==1.54.0 +gunicorn==20.0.4 +html3==1.18 +idna==3.3 +importlib-metadata==4.8.3 +itsdangerous==2.0.1 +Jinja2==3.0.3 +MarkupSafe==2.0.1 +protobuf==3.19.3 +pyasn1==0.4.8 +pyasn1-modules==0.2.8 +pycparser==2.20 +pytz==2021.3 +requests==2.27.1 +rsa==4.8 +six==1.16.0 +typing-extensions==4.0.1 +urllib3==1.26.8 +Werkzeug==2.0.2 +zipp==3.6.0