2018-11-28 13:34:46 +00:00
|
|
|
FROM alpine:3.8 as builder
|
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
gcc \
|
|
|
|
musl-dev \
|
|
|
|
python3-dev \
|
|
|
|
zlib-dev \
|
|
|
|
jpeg-dev \
|
|
|
|
py3-aiohttp \
|
|
|
|
py3-sqlalchemy \
|
|
|
|
py3-magic \
|
|
|
|
py3-lxml \
|
|
|
|
py3-attrs \
|
|
|
|
py3-chardet \
|
|
|
|
py3-multidict \
|
|
|
|
py3-yarl \
|
|
|
|
py3-idna-ssl \
|
|
|
|
py3-mako \
|
|
|
|
py3-dateutil \
|
|
|
|
py3-future \
|
|
|
|
py3-async-timeout \
|
|
|
|
py3-rsa \
|
|
|
|
py3-decorator \
|
|
|
|
py3-idna \
|
|
|
|
py3-markupsafe \
|
|
|
|
py3-six \
|
|
|
|
py3-asn1 \
|
2018-11-28 14:16:46 +00:00
|
|
|
py3-numpy \
|
|
|
|
py3-psycopg2
|
2018-11-28 13:34:46 +00:00
|
|
|
|
|
|
|
RUN pip3 install --upgrade \
|
|
|
|
https://github.com/tulir/mautrix-telegram/tarball/master#egg=mautrix_telegram[all]
|
|
|
|
|
|
|
|
FROM thallian/confd-env:latest
|
|
|
|
|
|
|
|
RUN addgroup -g 2222 matrix-bridge
|
|
|
|
RUN adduser -h /var/lib/matrix-bridge -u 2222 -D -G matrix-bridge matrix-bridge
|
|
|
|
|
2018-11-28 14:37:38 +00:00
|
|
|
COPY --from=builder /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
|
|
|
|
|
2018-11-28 13:34:46 +00:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
python3 \
|
|
|
|
ffmpeg \
|
|
|
|
libmagic \
|
|
|
|
zlib \
|
2018-11-28 14:21:57 +00:00
|
|
|
jpeg \
|
|
|
|
py3-aiohttp \
|
|
|
|
py3-sqlalchemy \
|
|
|
|
py3-magic \
|
|
|
|
py3-lxml \
|
|
|
|
py3-attrs \
|
|
|
|
py3-chardet \
|
|
|
|
py3-multidict \
|
|
|
|
py3-yarl \
|
|
|
|
py3-idna-ssl \
|
|
|
|
py3-mako \
|
|
|
|
py3-dateutil \
|
|
|
|
py3-future \
|
|
|
|
py3-async-timeout \
|
|
|
|
py3-rsa \
|
|
|
|
py3-decorator \
|
|
|
|
py3-idna \
|
|
|
|
py3-markupsafe \
|
|
|
|
py3-six \
|
|
|
|
py3-asn1 \
|
|
|
|
py3-numpy \
|
|
|
|
py3-psycopg2
|
2018-11-28 13:34:46 +00:00
|
|
|
|
2018-11-28 14:37:38 +00:00
|
|
|
RUN pip3 install alembic
|
2018-11-28 13:34:46 +00:00
|
|
|
|
|
|
|
WORKDIR /var/lib/matrix-bridge
|
|
|
|
|
|
|
|
RUN mkdir /var/lib/matrix-bridge/data
|
|
|
|
|
|
|
|
ADD /rootfs /
|
|
|
|
|
|
|
|
RUN chown -R matrix-bridge:matrix-bridge /var/lib/matrix-bridge
|
|
|
|
ENV HOME /var/lib/matrix-bridge
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|