Skip to content

Commit 449b7b7

Browse files
authored
Merge pull request #1335 from rhatdan/llama-stack
llama stack run should be the CMD not run during build
2 parents 1846fb8 + e81cab9 commit 449b7b7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

container-images/llama-stack/Containerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ FROM registry.fedoraproject.org/fedora:42
33
# hack that should be removed when the following bug is addressed
44
# https://github.com/containers/ramalama-stack/issues/53
55
RUN curl --create-dirs --output ~/.llama/providers.d/remote/inference/ramalama.yaml https://raw.githubusercontent.com/containers/ramalama-stack/refs/tags/v0.1.3/src/ramalama_stack/providers.d/remote/inference/ramalama.yaml && \
6-
curl --create-dirs --output ~/.llama/distributions/ramalama/ramalama-run.yaml https://raw.githubusercontent.com/containers/ramalama-stack/refs/tags/v0.1.3/src/ramalama_stack/ramalama-run.yaml
6+
curl --create-dirs --output /etc/ramalama/ramalama-run.yaml https://raw.githubusercontent.com/containers/ramalama-stack/refs/tags/v0.1.3/src/ramalama_stack/ramalama-run.yaml
77

88
RUN dnf -y update && \
99
dnf -y install uv cmake gcc gcc-c++ python3-devel pkg-config sentencepiece-devel && \
1010
dnf -y clean all
1111

12-
RUN uv venv && \
13-
uv pip install ramalama-stack && \
14-
uv run llama stack run --image-type venv --image-name /.venv ~/.llama/distributions/ramalama/ramalama-run.yaml
12+
RUN uv venv && \
13+
uv pip install ramalama-stack
14+
15+
ENV INFERENCE_MODEL=/mnt/model/model.file
1516

1617
COPY --chmod=755 llama-stack/entrypoint.sh /usr/bin/entrypoint.sh
1718

1819
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]
1920

21+
CMD llama stack run --image-type venv /etc/ramalama/ramalama-run.yaml

0 commit comments

Comments
 (0)