summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..873e97d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM archlinux:latest
+LABEL maintainer="me@jrdemasi.com"
+
+RUN pacman -Syyu --noconfirm
+RUN pacman -S --noconfirm python python-pip
+WORKDIR /code
+COPY ./requirements.txt /code/
+ENV VIRTUAL_ENV=/code/venv
+RUN python3 -m venv $VIRTUAL_ENV
+ENV PATH="$VIRTUAL_ENV/bin:$PATH"
+RUN pip install -r /code/requirements.txt
+COPY . /code/
+RUN /code/manage.py migrate
+ENV DJANGO_SUPERUSER_PASSWORD=admin
+RUN /code/manage.py createsuperuser --noinput --username admin --email admin@admin.com
+EXPOSE 5000
+CMD /code/manage.py runserver 0.0.0.0:5000