aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-06 17:35:50 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-06 17:35:50 +0100
commit2947010fe6fe3d54019164f9d8213a2fede55a45 (patch)
tree67796ab10edfa25562019e0e19cfb4075405e4d2 /Dockerfile
parent22f2d467a5b05e0a878d2c3125ef4f8ee8584f9b (diff)
SETTINGS FOR A GKE DEPLOY - not used
Diffstat (limited to '')
-rw-r--r--Dockerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f1c158c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,35 @@
+# 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 2, use the -p python2.7 flag.
+RUN virtualenv -p python3 /env
+ENV PATH /env/bin:$PATH
+
+#ADD requirements.txt /app/requirements.txt
+ADD requirements.txt /app/requirements.txt
+RUN /env/bin/pip install --upgrade pip && /env/bin/pip install -r /app/requirements.txt
+ADD . /app
+
+ENV DJANGO_SETTINGS_MODULE config.settings.gcloud_settings
+
+CMD gunicorn -b :$PORT config.wsgi
+# [END docker]