diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-02-05 15:43:26 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-02-05 15:43:26 +0000 |
commit | c433d4c4d2d112dcd5541b872155b7fb849e2aad (patch) | |
tree | 32749e974e10aeebd8eb813bb00193f19a176da1 /docker/Dockerfile | |
parent | Convert ACME docs to md (diff) | |
parent | Move things from README.rst to UPDATE.md (#4569) (diff) | |
download | synapse-c433d4c4d2d112dcd5541b872155b7fb849e2aad.tar.xz |
Merge branch 'release-v0.99.0' of github.com:matrix-org/synapse into anoa/self_signed_upgrade
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"] |