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
COPY "requirements.txt" .
RUN apt-get update
RUN apt-get -y install yt-dlp ffmpeg aria2 rtmpdump
RUN apk update
RUN apk add yt-dlp ffmpeg aria2 rtmpdump
RUN pip install -r requirements.txt --break-system-packages
COPY . .
CMD ["python", "-u", "app.py"]