FROM python:3.11-slim # System deps (optional – add what you actually need) RUN apt-get update && apt-get install -y --no-install-recommends \ curl ca-certificates && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python deps first for better layer caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your app COPY . . # Force the app to listen on all interfaces, fixed port ENV PORT=5050 EXPOSE 5050 # Generic python entrypoint (change main.py to your entry file) CMD ["python", "main.py"]