From 641fb8547a31c88cac8596b1bc1aab55a6b3d39e Mon Sep 17 00:00:00 2001 From: Viktor Kuropiatnyk Date: Fri, 4 Apr 2025 17:05:03 +0200 Subject: [PATCH] Slightly smaller image size Signed-off-by: Viktor Kuropiatnyk --- Containerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Containerfile b/Containerfile index ba44d01..b34a2a6 100644 --- a/Containerfile +++ b/Containerfile @@ -52,8 +52,8 @@ RUN echo "Downloading models..." && \ HF_HUB_DOWNLOAD_TIMEOUT="90" \ HF_HUB_ETAG_TIMEOUT="90" \ docling-tools models download -o "${DOCLING_SERVE_ARTIFACTS_PATH}" ${MODELS_LIST} && \ - chown -R 1001:0 /opt/app-root/src/.cache && \ - chmod -R g=u /opt/app-root/src/.cache + chgrp -R 0 /opt/app-root/ && \ + chmod -R g=u /opt/app-root/ COPY --chown=1001:0 ./docling_serve ./docling_serve RUN --mount=from=ghcr.io/astral-sh/uv:0.6.1,source=/uv,target=/bin/uv \ @@ -62,9 +62,6 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.6.1,source=/uv,target=/bin/uv \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ uv sync --frozen --no-dev --all-extras ${UV_SYNC_EXTRA_ARGS} -RUN chgrp -R 0 /opt/app-root/ && \ - chmod -R g=u /opt/app-root/ - EXPOSE 5001 CMD ["docling-serve", "run"]