# â’¸AngelaMos | 2025 # Development FastAPI Dockerfile FROM python:3.11-slim # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ postgresql-client \ && rm -rf /var/lib/apt/lists/* # Copy only requirements first (for layer caching) COPY backend/requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY backend/ . # Expose port EXPOSE 8000 # Run with uvicorn hot reload CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]