Update dockerfile for better caching

This commit is contained in:
Dead96 2025-04-17 16:44:14 +02:00 committed by GitHub
parent 0a03be0fae
commit 5a8c6f9cc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,5 @@
FROM python:3.11-slim
COPY . /app
WORKDIR /app
ENV TEMP /tmp
RUN mkdir -p $TEMP
RUN apt-get update && apt-get install -y \
ffmpeg \
build-essential \
@ -15,6 +9,10 @@ RUN apt-get update && apt-get install -y \
libxml2-dev \
libxslt1-dev
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "test_run.py"]
COPY . .
CMD ["python", "test_run.py"]