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.
- Loading branch information
Showing
2 changed files
with
3 additions
and
19 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,22 +47,20 @@ 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 | ||
&& pip3 install -r requirements.txt 'pillow==8.2' | ||
|
||
COPY . /opt/mautrix-telegram | ||
RUN apk add git && pip3 install .[speedups,hq_thumbnails,metrics,e2be] \ | ||
&& pip3 install 'git+https://github.com/vector-im/[email protected]#egg=mautrix' \ | ||
&& apk del git \ | ||
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram | ||
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram \ | ||
&& apk del .build-deps | ||
|
||
VOLUME /data | ||
ENV UID=1337 GID=1337 \ | ||
|
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