From 5a8c6f9cc3b0252ee839b256f2c04da3ec270e6a Mon Sep 17 00:00:00 2001 From: Dead96 <30490572+Dead96@users.noreply.github.com> Date: Thu, 17 Apr 2025 16:44:14 +0200 Subject: [PATCH] Update dockerfile for better caching --- dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dockerfile b/dockerfile index 6ca85d0..290c985 100644 --- a/dockerfile +++ b/dockerfile @@ -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"] \ No newline at end of file +COPY . . + +CMD ["python", "test_run.py"]