From 38a87be08c7e1ec5fdeb9d3ecf8386618e4e1aea Mon Sep 17 00:00:00 2001 From: halinhtvn3a <77691576+halinhtvn3a@users.noreply.github.com> Date: Tue, 23 Dec 2025 13:48:53 +0700 Subject: [PATCH] Update Dockerfile --- src/Services/AIService/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Services/AIService/Dockerfile b/src/Services/AIService/Dockerfile index 50f7a65b..de73f464 100644 --- a/src/Services/AIService/Dockerfile +++ b/src/Services/AIService/Dockerfile @@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # Copy requirements first for better caching -# Build context should be the AIService directory (where Dockerfile is located) COPY requirements.txt . COPY requirements-dev.txt . @@ -75,6 +74,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \ sentence-transformers==3.0.0 && \ echo "=== All dependencies installed successfully ===" +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install --no-cache-dir \ + --timeout=300 \ + --retries=5 \ + --verbose \ + --progress-bar=on \ + -r requirements.txt && \ + echo "=== requirements.txt installed successfully ===" + # Runtime stage FROM python:3.11-slim @@ -90,7 +98,6 @@ COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/pytho COPY --from=builder /usr/local/bin /usr/local/bin # Copy application code -# Build context is expected to be the repo root, but if it's the AIService directory, use relative path COPY app ./app COPY requirements.txt ./ # COPY proto ./proto