3 Commits

Author SHA1 Message Date
Viktor Kuropiatnyk
641fb8547a Slightly smaller image size
Signed-off-by: Viktor Kuropiatnyk <vku@zurich.ibm.com>
2025-04-04 17:05:03 +02:00
Viktor Kuropiatnyk
93314eb229 Sub-folder access is already covered by first statement
Signed-off-by: Viktor Kuropiatnyk <vku@zurich.ibm.com>
2025-04-03 16:32:35 +02:00
Viktor Kuropiatnyk
27009c03fb Give access to any user id in root group
Signed-off-by: Viktor Kuropiatnyk <vku@zurich.ibm.com>
2025-04-03 16:14:16 +02:00

View File

@@ -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 \