summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000..5f0433004f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM python:2-alpine
+
+RUN apk add --no-cache --virtual .nacl_deps build-base libffi-dev zlib-dev openssl-dev libjpeg-turbo-dev linux-headers
+
+COPY synapse /usr/local/src/synapse
+COPY setup.py setup.cfg README.rst synctl /usr/local/src/
+
+RUN cd /usr/local/src \
+ && pip install --upgrade --process-dependency-links . \
+ && rm -rf setup.py setup.cfg synapse
+
+COPY contrib/docker /
+
+VOLUME ["/data"]
+
+ENTRYPOINT ["/start.py"]