diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-02-05 18:44:49 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-02-05 18:44:49 +0000 |
commit | 247543408070d25c6bd16bf46edb7ccbec4fe46f (patch) | |
tree | c9e818e8ba5291156cbbbe86afd86767f9af0009 /docker/Dockerfile | |
parent | Filter user directory state query to a subset of state events (#4462) (diff) | |
parent | v0.99.0 (diff) | |
download | synapse-247543408070d25c6bd16bf46edb7ccbec4fe46f.tar.xz |
Merge branch 'master' into develop
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 20 |
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"] |