| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies needed by some packages (moviepy, etc.) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| git \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy and install dependencies first (better layer caching) | |
| COPY pyproject.toml ./ | |
| COPY shinka/ ./shinka/ | |
| # Install the package with pinned httpx | |
| RUN pip install --root-user-action=ignore --no-cache-dir -e . | |
| # Copy the rest of the project | |
| COPY . /app | |
| # Expose WebUI port | |
| EXPOSE 8888 | |
| # Default entry point: shinka_run CLI | |
| ENTRYPOINT ["shinka_run"] | |