mirror of
https://github.com/open-webui/oikb.git
synced 2026-08-11 01:13:36 +00:00
Some checks failed
Docker (GHCR) / read-version (push) Has been cancelled
Docker (GHCR) / build-dev (amd64, Dockerfile, default, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker (GHCR) / build-dev (amd64, Dockerfile.alpine, alpine, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker (GHCR) / build-dev (arm64, Dockerfile, default, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker (GHCR) / build-dev (arm64, Dockerfile.alpine, alpine, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker (GHCR) / merge-dev (push) Has been cancelled
Docker (GHCR) / merge-dev-alpine (push) Has been cancelled
Docker (GHCR) / build-release (amd64, Dockerfile, default, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker (GHCR) / build-release (amd64, Dockerfile.alpine, alpine, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker (GHCR) / build-release (arm64, Dockerfile, default, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker (GHCR) / build-release (arm64, Dockerfile.alpine, alpine, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker (GHCR) / merge-release (push) Has been cancelled
Docker (GHCR) / merge-release-alpine (push) Has been cancelled
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
FROM python:3.11-alpine3.23 AS builder
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
ENV UV_LINK_MODE=copy
|
|
ENV LD_LIBRARY_PATH=/usr/lib/llvm21/lib
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache build-base clang21-libclang pkgconf
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
|
uv sync --extra all --no-install-project --no-dev
|
|
|
|
COPY pyproject.toml LICENSE README.md ./
|
|
COPY src/ ./src/
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
uv sync --extra all --no-dev
|
|
|
|
|
|
FROM python:3.11-alpine3.23
|
|
LABEL org.opencontainers.image.description="CLI tool for syncing content to Open WebUI Knowledge Bases" \
|
|
org.opencontainers.image.source="https://github.com/open-webui/oikb" \
|
|
org.opencontainers.image.vendor="Open WebUI Inc." \
|
|
org.opencontainers.image.licenses="MIT"
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN apk add --no-cache ca-certificates libstdc++ \
|
|
&& addgroup -g 1000 appuser \
|
|
&& adduser -D -u 1000 -G appuser appuser
|
|
|
|
COPY --from=builder --chown=appuser:appuser /app /app
|
|
|
|
WORKDIR /app
|
|
|
|
USER appuser
|
|
|
|
ENV PATH="/app/.venv/bin:$PATH"
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["oikb"]
|