# Use an official Python base image FROM python:3.13 # Set working directory WORKDIR /app # Copy dependency files first to leverage Docker cache COPY requirements.txt . COPY .env ./ # Install dependencies RUN pip install --upgrade pip && \ pip install -r requirements.txt # Copy project files into the container COPY . . # Set environment variables (optional) ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Expose port (e.g., 8000 for FastAPI) EXPOSE 8000 # Set the command to run the app (adjust as needed) CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]