diff --git a/Dockerfile b/Dockerfile index 7559306..57ba318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -84,7 +84,10 @@ RUN groupadd -g 568 apps && useradd -u 568 -g apps -m -s /bin/bash appuser \ WORKDIR /app USER appuser -ENV HF_HOME=/models/huggingface INSIGHTFACE_HOME=/models/.insightface +# PYTHONPATH=/app makes the winnow package importable from the entry point script. +# uv sync builds the wheel before winnow/ is COPY'd, so site-packages has only +# the dist-info. Explicitly adding /app lets Python find winnow/__init__.py there. +ENV HF_HOME=/models/huggingface INSIGHTFACE_HOME=/models/.insightface PYTHONPATH=/app HEALTHCHECK CMD test -f /app/entrypoint.sh || exit 1 ENTRYPOINT ["tini", "--", "/app/entrypoint.sh"]