Skip to content

Commit

Permalink
fix: docker build py depend error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoha committed Oct 30, 2023
1 parent ed6e797 commit 259963d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ WORKDIR /app

COPY requirements.txt /app/

RUN apk add --no-cache --virtual .build-deps gcc g++ cmake openblas-dev make musl-dev zlib-dev \
RUN apk add --no-cache --virtual .build-deps gcc g++ cmake openblas-dev make musl-dev \
tiff-dev jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev \
libwebp-dev tcl-dev tk-dev harfbuzz-dev fribidi-dev libimagequant-dev \
libxcb-dev libpng-dev \
&& pip install --trusted-host pypi.python.org -r requirements.txt \
&& apk del .build-deps && rm -rf requirements.txt

Expand All @@ -14,6 +17,8 @@ FROM python:3.11.2-alpine As runtime-image

WORKDIR /app

RUN apk add --no-cache ffmpeg

COPY --from=tangyoha/telegram_media_downloader_compile:latest /usr/bin/rclone /app/rclone/rclone

COPY --from=tangyoha/telegram_media_downloader_compile:latest /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
Expand Down
2 changes: 1 addition & 1 deletion utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Init namespace"""

__version__ = "2.2.1"
__version__ = "2.2.2"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2023 tangyoha <https://github.com/tangyoha>"

0 comments on commit 259963d

Please sign in to comment.