From e11c6d4d85903cded013c430e667ca322bc24a0d Mon Sep 17 00:00:00 2001 From: Ishaan Sehgal Date: Mon, 9 Dec 2024 17:41:23 -0800 Subject: [PATCH] fix: Update Ragengine Service Dockerfile Update to include system dependencies Signed-off-by: Ishaan Sehgal --- docker/ragengine/service/Dockerfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docker/ragengine/service/Dockerfile b/docker/ragengine/service/Dockerfile index 3ab20c993..5682bb6d9 100644 --- a/docker/ragengine/service/Dockerfile +++ b/docker/ragengine/service/Dockerfile @@ -1,5 +1,13 @@ FROM python:3.12-slim +# Install system dependencies for building Python packages +RUN apt-get update && apt-get install -y \ + build-essential \ + gcc \ + g++ \ + make \ + && apt-get clean + WORKDIR /app # Copy all files from ragengine/services into the app/services folder @@ -14,8 +22,16 @@ RUN pip install --no-cache-dir -r ragengine/requirements.txt # Set the final working directory WORKDIR /app/ragengine -# Run Using Following +# Build and Push Using Docker +# Replace with your Azure Container Registry path, e.g., myregistry.azurecr.io # docker build -f docker/ragengine/service/Dockerfile -t kaito-rag-service:0.0.1 . # docker tag kaito-rag-service:0.0.1 /kaito-rag-service:0.0.1 # docker push /kaito-rag-service:0.0.1 +# Multi-Platform Build and Push Using Docker Buildx +# Requires QEMU for cross-platform builds (linux/amd64, linux/arm64) +# docker buildx build \ +# --platform linux/amd64,linux/arm64 \ +# -f docker/ragengine/service/Dockerfile \ +# -t /kaito-rag-service:0.0.4 \ +# --push .