From 3b9fcae5c79de5b1e1048ec27ed2b01530479a50 Mon Sep 17 00:00:00 2001 From: halinhtvn3a <77691576+halinhtvn3a@users.noreply.github.com> Date: Tue, 23 Dec 2025 13:10:56 +0700 Subject: [PATCH] Update Dockerfile --- src/Services/AIService/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Services/AIService/Dockerfile b/src/Services/AIService/Dockerfile index 1672649c..50f7a65b 100644 --- a/src/Services/AIService/Dockerfile +++ b/src/Services/AIService/Dockerfile @@ -11,6 +11,7 @@ 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 . @@ -89,7 +90,9 @@ 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 -COPY src/Services/AIService/app ./app +# 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 # Create non-root user