Update Docker image to Alpine 3.19
This commit is contained in:
+10
-8
@@ -1,9 +1,11 @@
|
|||||||
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18
|
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.19
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
python3 py3-pip py3-setuptools py3-wheel \
|
python3 py3-pip py3-setuptools py3-wheel \
|
||||||
#py3-pillow \
|
py3-pillow \
|
||||||
py3-aiohttp \
|
py3-aiohttp \
|
||||||
|
py3-asyncpg \
|
||||||
|
py3-aiosqlite \
|
||||||
py3-magic \
|
py3-magic \
|
||||||
py3-ruamel.yaml \
|
py3-ruamel.yaml \
|
||||||
py3-commonmark \
|
py3-commonmark \
|
||||||
@@ -15,6 +17,8 @@ RUN apk add --no-cache \
|
|||||||
py3-rsa \
|
py3-rsa \
|
||||||
#py3-telethon \ (outdated)
|
#py3-telethon \ (outdated)
|
||||||
py3-pyaes \
|
py3-pyaes \
|
||||||
|
py3-aiodns \
|
||||||
|
py3-python-socks \
|
||||||
# cryptg
|
# cryptg
|
||||||
py3-cffi \
|
py3-cffi \
|
||||||
py3-qrcode \
|
py3-qrcode \
|
||||||
@@ -32,21 +36,19 @@ RUN apk add --no-cache \
|
|||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
jq \
|
jq \
|
||||||
yq \
|
yq
|
||||||
# Temporarily install pillow from edge repo to get up-to-date version
|
|
||||||
&& apk add --no-cache py3-pillow --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
|
|
||||||
|
|
||||||
COPY requirements.txt /opt/mautrix-telegram/requirements.txt
|
COPY requirements.txt /opt/mautrix-telegram/requirements.txt
|
||||||
COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt
|
COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt
|
||||||
WORKDIR /opt/mautrix-telegram
|
WORKDIR /opt/mautrix-telegram
|
||||||
RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \
|
RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \
|
||||||
&& pip3 install /cryptg-*.whl \
|
&& pip3 install --break-system-packages /cryptg-*.whl \
|
||||||
&& pip3 install --no-cache-dir -r requirements.txt -r optional-requirements.txt \
|
&& pip3 install --break-system-packages --no-cache-dir -r requirements.txt -r optional-requirements.txt \
|
||||||
&& apk del .build-deps \
|
&& apk del .build-deps \
|
||||||
&& rm -f /cryptg-*.whl
|
&& rm -f /cryptg-*.whl
|
||||||
|
|
||||||
COPY . /opt/mautrix-telegram
|
COPY . /opt/mautrix-telegram
|
||||||
RUN apk add git && pip3 install --no-cache-dir .[all] && apk del git \
|
RUN apk add git && pip3 install --break-system-packages --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
|
# 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 .git build
|
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram .git build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user