# Use python 3 version of GAE base imageLABEL python_version python3.5RUN virtualenv --no-download /env -p python3.5ENV VIRTUAL_ENV /envENV PATH /env/bin:$PATH
# Install all dependencies in requirements.txtADD requirements.txt /app/requirements.txtRUN pip install -r /app/requirements.txt
# Add the application source code.ADD . /app
# Run staging migrations then tests. Then run the gunicorn serverWORKDIR /appEXPOSE 8080CMD python manage.py migrate --settings app.settings.staging && \ gunicorn -b :8080 app.wsgi
runtime: custom
env: flexentrypoint: gunicorn -b :8080 app.wsgi
beta_settings: cloud_sql_instances: CONNECTION
runtime_config: python_version: 3
automatic_scaling: min_num_instances: 1 max_num_instances: 1
resources: cpu: 1 memory_gb: 0.90 disk_size_gb: 10
liveness_check: path: '/liveness_check' timeout_sec: 4 check_interval_sec: 30 failure_threshold: 4 success_threshold: 2 initial_delay_sec: 3600
readiness_check: path: '/readiness_check' timeout_sec: 4 check_interval_sec: 5 failure_threshold: 2 success_threshold: 2 app_start_timeout_sec: 3600
url(r"/readiness_check", lambda r: HttpResponse("OK", status=200)), url(r"/liveness_check", lambda r: HttpResponse("OK", status=200)),