Add deps and enable cache dir.
Signed-off-by: Abdulkadir Furkan Şanlı <me@afk.pm>
This commit is contained in:
+4
-1
@@ -7,7 +7,7 @@ ENV PYTHONUNBUFFERED=1
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends curl ffmpeg && \
|
apt-get install -y --no-install-recommends curl ffmpeg quickjs && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
@@ -15,6 +15,9 @@ RUN uv pip install --system --no-cache -r requirements.txt
|
|||||||
|
|
||||||
COPY main.py parker.gif ./
|
COPY main.py parker.gif ./
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/src/app/.cache && \
|
||||||
|
chown -R 1000:1000 /usr/src/app/.cache
|
||||||
|
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|
||||||
CMD ["python", "./main.py"]
|
CMD ["python", "./main.py"]
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ matrix-nio == 0.24.0
|
|||||||
google-auth-oauthlib == 1.3.1
|
google-auth-oauthlib == 1.3.1
|
||||||
google-api-python-client == 2.194.0
|
google-api-python-client == 2.194.0
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
mutagen
|
||||||
|
|||||||
Reference in New Issue
Block a user