aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..63eaa21
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
+FROM alpine:latest
+
+RUN apk update && apk add python3 py3-setuptools py3-virtualenv
+RUN apk add postgresql postgresql-client
+RUN apk add linux-headers git postgresql-dev gcc python3-dev libc-dev
+
+COPY app/requirements.txt /requirements.txt
+RUN pip3 install --no-cache-dir -r /requirements.txt
+RUN rm /requirements.txt
+
+RUN pip3 install --no-cache-dir uwsgi
+
+RUN apk del linux-headers postgresql-dev gcc python3-dev libc-dev
+
+RUN adduser -h /app -D -H -u 1000 app
+
+RUN mkdir /app /static
+RUN chown -R app /app /static
+
+
+# TODO: add these to the install above
+RUN apk add nginx runit
+
+COPY etc /etc
+
+CMD [ '/etc/start' ]