changeset 132:99e4022eae52

pics3: add Dockerfile and requirements.pip
author paulo
date Thu, 20 Jan 2022 01:28:46 -0800
parents 221d6ea7c6c8
children 41a6e2d99f68
files pics3/Dockerfile pics3/requirements.pip
diffstat 2 files changed, 51 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pics3/Dockerfile	Thu Jan 20 01:28:46 2022 -0800
     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 pics_flask_app:app
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pics3/requirements.pip	Thu Jan 20 01:28:46 2022 -0800
     2.3 @@ -0,0 +1,34 @@
     2.4 +cachetools==4.2.4
     2.5 +certifi==2021.10.8
     2.6 +cffi==1.14.3
     2.7 +chardet==4.0.0
     2.8 +charset-normalizer==2.0.10
     2.9 +click==8.0.3
    2.10 +dataclasses==0.8
    2.11 +Flask==2.0.2
    2.12 +google-api-core==2.4.0
    2.13 +google-auth==2.3.3
    2.14 +google-cloud-core==2.2.2
    2.15 +google-cloud-storage==2.0.0
    2.16 +google-crc32c==1.3.0
    2.17 +google-resumable-media==2.1.0
    2.18 +googleapis-common-protos==1.54.0
    2.19 +gunicorn==20.0.4
    2.20 +html3==1.18
    2.21 +idna==3.3
    2.22 +importlib-metadata==4.8.3
    2.23 +itsdangerous==2.0.1
    2.24 +Jinja2==3.0.3
    2.25 +MarkupSafe==2.0.1
    2.26 +protobuf==3.19.3
    2.27 +pyasn1==0.4.8
    2.28 +pyasn1-modules==0.2.8
    2.29 +pycparser==2.20
    2.30 +pytz==2021.3
    2.31 +requests==2.27.1
    2.32 +rsa==4.8
    2.33 +six==1.16.0
    2.34 +typing-extensions==4.0.1
    2.35 +urllib3==1.26.8
    2.36 +Werkzeug==2.0.2
    2.37 +zipp==3.6.0