-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 779 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
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 . .
RUN uv sync --frozen --no-dev --all-extras
EXPOSE 5050
CMD ["ultrarag", "show", "ui", "--admin", "--port", "5050", "--host", "0.0.0.0"]