FROM python:3.11-slim WORKDIR /app # Copy requirements file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application COPY . . # Create the database directory RUN mkdir -p /app/storage/db # Set environment variables ENV PYTHONPATH=/app ENV HOST=0.0.0.0 ENV PORT=8000 ENV DEBUG=True # Expose the port EXPOSE 8000 # Run the application CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]