summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJonathan DeMasi <jonathan.demasi@colorado.edu>2020-03-02 15:31:38 -0700
committerJonathan DeMasi <jonathan.demasi@colorado.edu>2020-03-02 15:31:38 -0700
commit4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a (patch)
tree5bb2626573e30aeb9fe6fddab490170ebe86e43e /Dockerfile
parent8234155d407d0bfd1f6d6218fde59b09337294cb (diff)
downloadjthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar.gz
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar.bz2
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar.lz
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar.xz
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.tar.zst
jthanio-4872b099ccd2ddd4e6baa31b7a2b3cf391237a7a.zip
init wagtail
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..130c09d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+# Use an official Python runtime as a parent image
+FROM python:3.7
+LABEL maintainer="hello@wagtail.io"
+
+# Set environment varibles
+ENV PYTHONUNBUFFERED 1
+ENV DJANGO_ENV dev
+
+COPY ./requirements.txt /code/requirements.txt
+RUN pip install --upgrade pip
+# Install any needed packages specified in requirements.txt
+RUN pip install -r /code/requirements.txt
+RUN pip install gunicorn
+
+# Copy the current directory contents into the container at /code/
+COPY . /code/
+# Set the working directory to /code/
+WORKDIR /code/
+
+RUN python manage.py migrate
+
+RUN useradd wagtail
+RUN chown -R wagtail /code
+USER wagtail
+
+EXPOSE 8000
+CMD exec gunicorn jthanio.wsgi:application --bind 0.0.0.0:8000 --workers 3