diff options
author | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2018-05-11 17:21:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 17:21:12 +0100 |
commit | 16f41237f076485184237a91e62b41445e75fc33 (patch) | |
tree | 915562c702471ba340e16d547a7fc501e36dcc95 /Dockerfile | |
parent | Merge pull request #3208 from matrix-org/rav/more_refactor_request_handler (diff) | |
parent | Add Docker packaging in the author list (diff) | |
download | synapse-16f41237f076485184237a91e62b41445e75fc33.tar.xz |
Merge pull request #2846 from kaiyou/feat-dockerfile
Add a Dockerfile for synapse
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..8085f3d354 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM docker.io/python:2-alpine3.7 + +RUN apk add --no-cache --virtual .nacl_deps su-exec build-base libffi-dev zlib-dev libressl-dev libjpeg-turbo-dev linux-headers postgresql-dev + +COPY . /synapse + +# A wheel cache may be provided in ./cache for faster build +RUN cd /synapse \ + && pip install --upgrade pip setuptools psycopg2 \ + && mkdir -p /synapse/cache \ + && pip install -f /synapse/cache --upgrade --process-dependency-links . \ + && mv /synapse/contrib/docker/start.py /synapse/contrib/docker/conf / \ + && rm -rf setup.py setup.cfg synapse + +VOLUME ["/data"] + +EXPOSE 8008/tcp 8448/tcp + +ENTRYPOINT ["/start.py"] |