diff --git a/Dockerfile b/Dockerfile index 06a985d..28f8185 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ COPY backend/src/ ./src/ RUN npm run build # Verify Python and OR-Tools installation -RUN ["python", "-c", "from ortools.sat.python import cp_model; print(\"OR-Tools installed successfully\")"] +RUN python -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')" # Frontend build stage FROM node:20-alpine AS frontend-builder diff --git a/backend/src/scripts/verify-python.js b/backend/src/scripts/verify-python.js index e6048d4..e3b0dcf 100644 --- a/backend/src/scripts/verify-python.js +++ b/backend/src/scripts/verify-python.js @@ -3,7 +3,7 @@ import path from 'path'; export function runPythonScript(scriptPath, args = []) { return new Promise((resolve, reject) => { - const pythonProcess = spawn('python3', [scriptPath, ...args]); + const pythonProcess = spawn('python', [scriptPath, ...args]); let stdout = ''; let stderr = '';