# eamco_scraper - LOCAL Dockerfile # Used by docker-compose.local.yml # Features: Volume mounts for development, hot reload FROM python:3.11-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ PYTHONPATH=/app # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ libpq-dev \ gcc \ && rm -rf /var/lib/apt/lists/* # Copy requirements COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy environment file for local COPY .env.local .env # Copy application code (will be overridden by volume mount) COPY app/ ./app/ # Expose port EXPOSE 8000 # Development: Run with reload CMD ["uvicorn", "app.main:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]