forked from mautrix/telegram
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from vector-im/jaller94-patch-1
- Loading branch information
Showing
3 changed files
with
8 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,21 +47,17 @@ RUN apk add --no-cache \ | |
yq | ||
|
||
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 \ | ||
&& sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \ | ||
# TODO: unpin Pillow here after it's updated in Alpine | ||
&& pip3 install -r requirements.txt -r optional-requirements.txt 'pillow==8.2' \ | ||
&& apk del .build-deps | ||
|
||
COPY . /opt/mautrix-telegram | ||
RUN apk add git && pip3 install .[speedups,hq_thumbnails,metrics,e2be] \ | ||
&& pip3 install 'git+https://github.com/vector-im/mautrix-python@bump-conn-pool-limit#egg=mautrix' \ | ||
RUN apk add git \ | ||
&& apk add --virtual .build-deps python3-dev libffi-dev build-base \ | ||
&& pip3 install .[speedups,hq_thumbnails,metrics,e2be] \ | ||
# TODO: unpin Pillow here after it's updated in Alpine | ||
&& pip3 install -r requirements.txt 'pillow==8.2' \ | ||
&& pip3 install 'git+https://github.com/vector-im/[email protected]#egg=mautrix' \ | ||
&& apk del git \ | ||
&& apk del .build-deps \ | ||
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram | ||
|
||
VOLUME /data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters