matrix-synapse/Dockerfile

75 lines
1.4 KiB
Docker
Raw Normal View History

2016-11-01 15:06:47 +00:00
FROM quay.io/thallian/confd-env:latest
2016-08-03 09:38:20 +00:00
2017-02-02 11:11:39 +00:00
ENV VERSION v0.19.0-rc2
2016-08-03 09:38:20 +00:00
2016-08-03 10:22:48 +00:00
RUN addgroup -g 2222 synapse
RUN adduser -h /var/lib/synapse -u 2222 -D -G synapse synapse
2016-08-03 09:38:20 +00:00
RUN apk add --no-cache \
2017-01-10 14:57:51 +00:00
libressl \
2016-08-03 09:38:20 +00:00
bash \
coreutils \
curl \
file \
gcc \
2016-08-03 10:52:12 +00:00
libpq \
2016-08-03 09:38:20 +00:00
postgresql-dev \
libffi \
libffi-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
libssl1.0 \
libtool \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
linux-headers \
make \
musl \
musl-dev \
2017-01-10 14:57:51 +00:00
libressl-dev \
2016-08-03 09:38:20 +00:00
pwgen \
2017-01-10 14:57:51 +00:00
py2-pip \
2016-08-03 09:38:20 +00:00
py-virtualenv \
2017-01-10 14:57:51 +00:00
python2 \
python2-dev \
2016-08-03 09:38:20 +00:00
sqlite \
sqlite-libs \
unzip \
zlib \
zlib-dev
RUN virtualenv -p python /var/lib/synapse
RUN source /var/lib/synapse/bin/activate && \
pip install --upgrade setuptools && \
pip install psycopg2 && \
pip install https://github.com/matrix-org/synapse/tarball/$VERSION
RUN apk del \
coreutils \
file \
gcc \
postgresql-dev \
libffi-dev \
libjpeg-turbo-dev \
libtool \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
musl-dev \
2017-01-10 14:57:51 +00:00
libressl-dev \
2016-08-03 09:38:20 +00:00
python-dev \
sqlite-libs \
zlib-dev
2016-08-03 12:25:39 +00:00
ADD /rootfs /
2016-08-03 09:38:20 +00:00
RUN chown -R synapse:synapse /var/lib/synapse
ENV HOME /var/lib/synapse
EXPOSE 8448
2016-08-03 11:44:24 +00:00
VOLUME /var/lib/synapse/media_store/ /var/lib/synapse/uploads /var/lib/synapse/signing/ /etc/ssl/synapse/