FROM python:3.14-slim WORKDIR /app # Keeps Python from generating .pyc files and turns off output buffering. ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 5000 # Serve the ASGI Socket.IO app with uvicorn. CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "5000"]