# The user's Dockerfile must specify an entrypoint with ENTRYPOINT or CMD.
# Port 8080 is the port used by Google App Engine for serving HTTP traffic.
usr/bin/pip install -upgrade -r /resources/requirements-virtualenv.txt opt/python3.7/bin/pip3.7 install -upgrade -r /resources/requirements.txt & \ opt/python3.6/bin/pip3.6 install -upgrade -r /resources/requirements.txt & \ opt/python3.5/bin/pip3.5 install -upgrade -r /resources/requirements.txt & \ opt/python3.4/bin/pip3.4 install -upgrade -r /resources/requirements.txt & \ RUN /usr/bin/pip install -upgrade -r /resources/requirements.txt & \ # Upgrade pip (debian package version tends to run a few version behind) and Update-alternatives -install /usr/local/bin/pip3 pip3 /opt/python3.7/bin/pip3.7 50 You can test your access using the sample code.
RUN update-alternatives -install /usr/local/bin/python3 python3 /opt/python3.7/bin/python3.7 50 & \ On your side: Download the google-api-python-client library, unzip it in your code directory and run python setup.py install. # Add Google-built interpreters to the pathĮNV PATH /opt/python3.7/bin:/opt/python3.6/bin:/opt/python3.5/bin:/opt/python3.4/bin:$PATH This prevents delay between output and cloud This prevents Python 3 IO encoding issues. # Install Python, pip, and C dev libraries necessary to compile the most popular This is the github repo of the Python Runtime for App Engine Flex, in that repository you can find the Dockerfile and all the Scripts to create an Docker container similar than the used on App Engine Flex # The Google App Engine base image is debian (jessie) with ca-certificates