From 9298ac40d94db01ef7b2b4b9085e9014753dd396 Mon Sep 17 00:00:00 2001 From: sudolulo Date: Wed, 10 Jun 2026 16:09:52 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0c842b..358a8e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ git \ curl \ g++ \ + cron \ && rm -rf /var/lib/apt/lists/* \ && ln -sf /usr/bin/python3.12 /usr/bin/python \ && ln -sf /usr/bin/python3.12 /usr/bin/python3 @@ -28,12 +29,17 @@ RUN git clone --depth 1 https://github.com/sudolulo/if_curator_headless.git . \ && uv sync --extra gpu \ && uv cache clean +COPY entrypoint.sh /app/entrypoint.sh +RUN chmod +x /app/entrypoint.sh + RUN groupadd -g 568 apps \ && useradd -u 568 -g apps -m -s /bin/bash appuser \ && chown -R appuser:apps /app USER appuser -ENV FORCE_CPU=false +ENV FORCE_CPU=false \ + HF_HOME=/models/huggingface \ + INSIGHTFACE_HOME=/models/insightface -ENTRYPOINT ["uv", "run", "if-curator"] +ENTRYPOINT ["/app/entrypoint.sh"]