FROM python:3.9-slim WORKDIR /app # Install requirements COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy all files COPY . . # Make start.sh executable RUN chmod +x start.sh EXPOSE 8000 EXPOSE 7860 # Run the startup script which handles both SQLite server and FastAPI CMD ["./start.sh"]