diff --git a/Dockerfile b/Dockerfile index 21038ac8..ec89c42e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,19 +4,22 @@ ARG TARGETARCH=amd64 RUN apk add --no-cache \ python3 py3-pip py3-setuptools py3-wheel \ - py3-virtualenv \ py3-pillow \ py3-aiohttp \ py3-magic \ py3-ruamel.yaml \ py3-commonmark \ - py3-prometheus-client \ + py3-phonenumbers \ + py3-mako \ + #py3-prometheus-client \ (pulls in twisted unnecessarily) # Indirect dependencies py3-idna \ + py3-rsa \ #moviepy py3-decorator \ py3-tqdm \ py3-requests \ + #py3-proglog \ #imageio py3-numpy \ #py3-telethon \ (outdated) @@ -25,7 +28,7 @@ RUN apk add --no-cache \ py3-pyaes \ # cryptg py3-cffi \ - py3-qrcode \ + py3-qrcode \ py3-brotli \ # Other dependencies ffmpeg \ @@ -46,13 +49,13 @@ COPY requirements.txt /opt/mautrix-telegram/requirements.txt COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt WORKDIR /opt/mautrix-telegram RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \ - && pip3 install -r requirements.txt -r optional-requirements.txt \ + && pip3 install --no-cache-dir -r requirements.txt -r optional-requirements.txt \ && apk del .build-deps COPY . /opt/mautrix-telegram -RUN apk add git && pip3 install .[all] && apk del git \ +RUN apk add git && pip3 install --no-cache-dir .[all] && apk del git \ # This doesn't make the image smaller, but it's needed so that the `version` command works properly - && cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram + && cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram .git build VOLUME /data ENV UID=1337 GID=1337 \