From d3570967e6f9f83c108d916601aa01b29bbf99da Mon Sep 17 00:00:00 2001 From: your-username Date: Thu, 22 Jan 2026 14:26:46 +0530 Subject: [PATCH] Fix Docker build by adding Rust compilation dependencies - Add gcc, g++, make, and curl to python:3.9-slim base image - Resolves 'linker cc not found' error during Rust bindings compilation - Clean up apt cache to minimize image size --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index a2071d3..2a2cbc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,14 @@ FROM python:3.9-slim # Set the working directory in the container WORKDIR /usr/src/app +# Install build dependencies for Rust compilation +RUN apt-get update && apt-get install -y \ + gcc \ + g++ \ + make \ + curl \ + && rm -rf /var/lib/apt/lists/* + # Copy the current directory contents into the container COPY . .