diff options
author | Jan Christian Grünhage <jan.christian@gruenhage.xyz> | 2018-09-10 17:35:01 +0200 |
---|---|---|
committer | Jan Christian Grünhage <jan.christian@gruenhage.xyz> | 2018-09-10 17:39:49 +0200 |
commit | af10fa6536bf25630f4a290c756cd7f78e394a41 (patch) | |
tree | 546af5083553c23a0e6997c52a07812216c8ce71 /docker | |
parent | Newsfile (diff) | |
download | synapse-af10fa6536bf25630f4a290c756cd7f78e394a41.tar.xz |
add runtime dependencies
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index b9f0acccc3..20d3fe3bd8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ FROM docker.io/python:2-alpine3.8 COPY . /synapse -RUN apk add --no-cache --virtual .nacl_deps \ +RUN apk add --no-cache --virtual .build_deps \ build-base \ libffi-dev \ libjpeg-turbo-dev \ @@ -10,11 +10,16 @@ RUN apk add --no-cache --virtual .nacl_deps \ libxslt-dev \ linux-headers \ postgresql-dev \ - su-exec \ zlib-dev \ - -# A wheel cache may be provided in ./cache for faster build && cd /synapse \ + && apk add --no-cache --virtual .runtime_deps \ + libffi \ + libjpeg-turbo \ + libressl \ + libxslt \ + libpq \ + zlib \ + su-exec \ && pip install --upgrade \ lxml \ pip \ @@ -27,7 +32,7 @@ RUN apk add --no-cache --virtual .nacl_deps \ setup.cfg \ setup.py \ synapse \ - && apk del .nacl_deps + && apk del .build_deps VOLUME ["/data"] |