Change to using python:alpine instead of python:latest (debian)

actually smaller images this time?
This commit is contained in:
a 2024-05-10 19:26:11 +00:00
parent 8d3d029671
commit 717f8cc3fb

View file

@ -1,8 +1,8 @@
FROM python:latest FROM python:alpine
WORKDIR /umi WORKDIR /umi
COPY "requirements.txt" . COPY "requirements.txt" .
RUN apt-get update RUN apk update
RUN apt-get -y install yt-dlp ffmpeg aria2 rtmpdump RUN apk add yt-dlp ffmpeg aria2 rtmpdump
RUN pip install -r requirements.txt --break-system-packages RUN pip install -r requirements.txt --break-system-packages
COPY . . COPY . .
CMD ["python", "-u", "app.py"] CMD ["python", "-u", "app.py"]