-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 983 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (27 loc) · 983 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
36
37
38
39
# 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 project files
COPY run.yaml ./
COPY pyproject.toml ./
COPY uv.lock ./
COPY LICENSE ./
COPY README.md ./
COPY lightspeed_stack_providers/ ./lightspeed_stack_providers/
COPY resources/ ./resources/
# Install system dependencies
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
RUN uv sync --locked --extra dev --extra test
# Install the lightspeed providers package
RUN uv pip install -e .
# Verify llama command is available
RUN uv run python -c "import llama_stack; print('llama-stack imported successfully')"
# Expose port
EXPOSE 8321
# Default command - use llama command directly
CMD ["uv", "run", "llama", "stack", "run", "/app/run.yaml"]