openwebui-oikb/Dockerfile
Timothy Jaeryang Baek e3c59f1b03 init
2026-05-20 13:19:16 +04:00

24 lines
607 B
Docker

# ── Build ──
FROM python:3.12-slim AS builder
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir uv && \
uv build --wheel
# ── Runtime ──
FROM python:3.12-slim
LABEL org.opencontainers.image.source="https://github.com/open-webui/oikb"
LABEL org.opencontainers.image.description="CLI tool for syncing content to Open WebUI Knowledge Bases"
# Install oikb from the built wheel.
COPY --from=builder /app/dist/*.whl /tmp/
RUN pip install --no-cache-dir /tmp/*.whl && rm /tmp/*.whl
# Sync source is mounted at /data by convention.
VOLUME ["/data"]
WORKDIR /data
ENTRYPOINT ["oikb"]