-
Notifications
You must be signed in to change notification settings - Fork 414
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1000 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:22-bookworm-slim AS frontend-builder
WORKDIR /ultrarag-frontend
COPY ui/frontend/package*.json ./
RUN npm ci
COPY ui/frontend/ ./
RUN npm run build
FROM nvidia/cuda:13.1.1-base-ubuntu24.04
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
UV_PYTHON=python3.12 \
PATH="/root/.local/bin:/ultrarag/.venv/bin:${PATH}"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3.12 python3.12-venv python3-dev \
curl ca-certificates git build-essential libreoffice && \
update-ca-certificates && \
ln -sf /usr/bin/python3.12 /usr/local/bin/python3 && \
ln -sf /usr/bin/python3.12 /usr/local/bin/python && \
rm -rf /var/lib/apt/lists/*
WORKDIR /ultrarag
COPY . .
COPY --from=frontend-builder /ultrarag-frontend/dist ./ui/frontend/dist
RUN uv sync --frozen --no-dev --all-extras
EXPOSE 5050
CMD ["ultrarag", "show", "ui", "--port", "5050", "--host", "0.0.0.0"]