summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-02-03 20:18:36 +0100
committerkaiyou <pierre@jaury.eu>2018-02-03 20:18:36 +0100
commit431476fbc4ef0c740e33e19ccc73996c2412e4f9 (patch)
tree1b7cc0265039cbdf4128c000b252908aebcf22ac /Dockerfile
parentMerge pull request #2798 from jeremycline/fedora-repo (diff)
downloadsynapse-431476fbc4ef0c740e33e19ccc73996c2412e4f9.tar.xz
Initial commit including a Dockerfile for synapse
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"]