From 9ac03099173136536a73c7f4d7cd8aec57feef89 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Tue, 21 Oct 2025 23:53:12 +0200 Subject: [PATCH] changed python install to alpine python install --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9c8eb4..28f8185 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,14 +3,15 @@ FROM node:20-alpine AS backend-builder WORKDIR /app/backend -# Install only what's absolutely necessary +# Install ortools from Alpine packages (if available) RUN apk add --no-cache \ python3 \ py3-pip \ - build-base + build-base \ + python3-dev -# Install ortools directly -RUN pip install --no-cache-dir ortools +# Try Alpine package first, then pip as fallback +RUN apk add py3-ortools 2>/dev/null || pip3 install --break-system-packages --no-cache-dir ortools # Create symlink so python3 is callable as python RUN ln -sf /usr/bin/python3 /usr/bin/python