FROM python:3.11-slim WORKDIR /app # System dependencies RUN apt-get update && apt-get install -y \ gcc \ python3-dev \ libffi-dev \ && rm -rf /var/lib/apt/lists/* # Clean up and install requirements RUN rm -rf /app/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt \ && pip install --no-cache-dir wheel setuptools # Copy application files COPY website/ ./website/ COPY requirements.txt . EXPOSE 6000 # Verify installations RUN pip list CMD ["python", "website/app.py"]