# Python backend Dockerfile FROM python:3.11-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install Python dependencies COPY Algorithm/python-backend/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy Python backend code COPY Algorithm/ ./Algorithm/ WORKDIR /app/Algorithm/python-backend EXPOSE 5000 CMD ["python", "api.py"]