footypredict-pro / Dockerfile.fastapi
NetBoss
V3.0 Ultimate Enhancement - Complete production system
6f7e932
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
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install uvicorn fastapi websockets
# Copy application code
COPY . .
# Expose port
EXPOSE 8001
# Run FastAPI
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8001", "--workers", "2"]