From 3d9b532ebdb050f578e3a5a2ff299a10b5b0532c Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Mon, 2 Dec 2024 07:04:02 +0900 Subject: [PATCH 1/2] fix --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ed60deb4..2188a2134 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,14 @@ WORKDIR /app COPY requirements.txt /app/requirements.txt -RUN pip install -r /app/requirements.txt +RUN apt update \ + && apt upgrade --yes \ + && apt install g++ ffmpeg libsm6 libxext6 libvulkan-dev \ + && pip install -r /app/requirements.txt \ + && apt remove g++ --yes \ + && apt autoremove --yes \ + && rm -rf /var/cache/apt -# Copy app COPY . /app # Prepare models From 7126b3ea498676b93e7cc4af3c195cb669ac78a4 Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Sun, 1 Dec 2024 23:25:39 +0100 Subject: [PATCH 2/2] tune deps --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2188a2134..52fc8dbf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,9 @@ WORKDIR /app COPY requirements.txt /app/requirements.txt -RUN apt update \ - && apt upgrade --yes \ - && apt install g++ ffmpeg libsm6 libxext6 libvulkan-dev \ +RUN export TZ=Etc/UTC ; \ + apt update --yes \ + && apt install g++ ffmpeg libsm6 libxext6 --yes \ && pip install -r /app/requirements.txt \ && apt remove g++ --yes \ && apt autoremove --yes \ @@ -24,7 +24,7 @@ RUN python -u docker_prepare.py --continue-on-error RUN rm -rf /tmp # Add /app to Python module path -ENV PYTHONPATH="${PYTHONPATH}:/app" +ENV PYTHONPATH="/app" WORKDIR /app