mirror of
https://github.com/open-webui/oikb.git
synced 2026-07-09 16:00:53 +00:00
24 lines
607 B
Docker
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"]
|