Install matrix-nio dependencies from alpine packages when available

This commit is contained in:
Tulir Asokan
2020-03-28 23:09:08 +02:00
parent 6ab3106b38
commit 260c1612a6
+21 -8
View File
@@ -20,22 +20,22 @@ RUN apk add --no-cache libpng libpng-dev zlib zlib-dev \
FROM docker.io/alpine:3.11
RUN echo "@edge_main http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
RUN echo "@edge_testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache \
py3-virtualenv \
py3-pillow \
py3-aiohttp \
py3-magic \
py3-sqlalchemy \
py3-alembic@edge_testing \
py3-psycopg2 \
py3-ruamel.yaml \
py3-commonmark@edge_testing \
# Indirect dependencies
py3-idna \
#commonmark
py3-future \
#alembic
py3-mako \
py3-dateutil \
py3-markupsafe \
#moviepy
py3-decorator \
py3-tqdm \
@@ -54,8 +54,21 @@ RUN apk add --no-cache \
netcat-openbsd \
# lottieconverter
zlib libpng \
&& apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
olm-dev
# olm
olm-dev@edge_community \
# matrix-nio?
py3-future \
py3-atomicwrites \
py3-pycryptodome@edge_main \
py3-peewee@edge_community \
py3-pyrsistent@edge_community \
py3-jsonschema \
py3-aiofiles \
py3-cachetools@edge_community \
py3-prometheus-client@edge_community \
py3-unpaddedbase64 \
py3-pyaes@edge_testing \
py3-logbook@edge_testing
COPY requirements.txt /opt/mautrix-telegram/requirements.txt
COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt