summary refs log tree commit diff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-02-05 18:44:49 +0000
committerRichard van der Hoff <richard@matrix.org>2019-02-05 18:44:49 +0000
commit247543408070d25c6bd16bf46edb7ccbec4fe46f (patch)
treec9e818e8ba5291156cbbbe86afd86767f9af0009 /docker/Dockerfile
parentFilter user directory state query to a subset of state events (#4462) (diff)
parentv0.99.0 (diff)
downloadsynapse-247543408070d25c6bd16bf46edb7ccbec4fe46f.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile20
1 files changed, 18 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4b739e7d02..c35da67a2a 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,3 +1,16 @@
+# Dockerfile to build the matrixdotorg/synapse docker images.
+#
+# To build the image, run `docker build` command from the root of the
+# synapse repository:
+#
+#    docker build -f docker/Dockerfile .
+#
+# There is an optional PYTHON_VERSION build argument which sets the
+# version of python to build against: for example:
+#
+#    docker build -f docker/Dockerfile --build-arg PYTHON_VERSION=3.6 .
+#
+
 ARG PYTHON_VERSION=2
 
 ###
@@ -31,7 +44,10 @@ RUN pip install --prefix="/install" --no-warn-script-location \
 
 # now install synapse and all of the python deps to /install.
 
-COPY . /synapse
+COPY synapse /synapse/synapse/
+COPY scripts /synapse/scripts/
+COPY MANIFEST.in README.rst setup.py synctl /synapse/
+
 RUN pip install --prefix="/install" --no-warn-script-location \
         /synapse[all]
 
@@ -56,6 +72,6 @@ COPY ./docker/conf /conf
 
 VOLUME ["/data"]
 
-EXPOSE 8008/tcp 8448/tcp
+EXPOSE 8008/tcp 8009/tcp 8448/tcp
 
 ENTRYPOINT ["/start.py"]