forked from lightspeed-core/lightspeed-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.containerfile
More file actions
28 lines (20 loc) · 829 Bytes
/
test.containerfile
File metadata and controls
28 lines (20 loc) · 829 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
# vim: set filetype=dockerfile
FROM registry.access.redhat.com/ubi9/ubi-minimal
ARG APP_ROOT=/app-root
ENV PATH="$PATH:/root/.local/bin"
WORKDIR ${APP_ROOT}
COPY run.yaml ./
COPY pyproject.toml ./
COPY uv.lock ./
COPY LICENSE ./
COPY README.md ./
COPY src/ ./src/
RUN microdnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs \
python3.12 python3.12-devel python3.12-pip git tar gcc gcc-c++ make
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN uv -h
# Install from pyproject.toml using uv sync for version consistency
# Note: using --no-install-project since this is llama-stack container, not lightspeed-stack
# Include dev deps for testing (pytest, behave, etc.)
RUN uv sync --locked --no-install-project --group dev --group llslibdev
CMD ["uv", "run", "llama", "stack", "run", "run.yaml"]