Public | Automated Build

Last pushed: 3 years ago
Dockerfile
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # [START docker] # The Google App Engine python runtime is Debian Jessie with Python installed # and various os-level packages to allow installation of popular Python # libraries. The source is on github at: # https://github.com/GoogleCloudPlatform/python-docker FROM gcr.io/google_appengine/python # Create a virtualenv for the application dependencies. # If you want to use Python 3, add the -p python3.4 flag. RUN virtualenv /env # Set virtualenv environment variables. This is equivalent to running # source /env/bin/activate. This ensures the application is executed within # the context of the virtualenv and will have access to its dependencies. ENV VIRTUAL_ENV /env ENV PATH /env/bin:$PATH # Install dependencies. ADD requirements.txt /app/requirements.txt RUN pip install -r /app/requirements.txt # Add application code. ADD . /app # Use Gunicorn to serve the application. CMD gunicorn -b :$PORT main:app # [END docker]
Source Repository