forked from opendatahub-io/llama-stack-distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.in
More file actions
19 lines (14 loc) · 769 Bytes
/
Containerfile.in
File metadata and controls
19 lines (14 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM registry.access.redhat.com/ubi9/python-312@sha256:95ec8d3ee9f875da011639213fd254256c29bc58861ac0b11f290a291fa04435
WORKDIR /opt/app-root
RUN pip install sqlalchemy # somehow sqlalchemy[asyncio] is not sufficient
{dependencies}
RUN pip install --no-cache llama-stack==0.2.18
RUN mkdir -p ${{HOME}}/.llama/providers.d ${{HOME}}/.cache
# Copy both configurations
COPY distribution/run.yaml ${{APP_ROOT}}/run-full.yaml
COPY distribution/run-standalone.yaml ${{APP_ROOT}}/run-standalone.yaml
# Copy the entrypoint script
COPY --chmod=755 distribution/entrypoint.sh ${{APP_ROOT}}/entrypoint.sh
# Copy providers directory (will be filtered by entrypoint script)
COPY distribution/providers.d/ ${{HOME}}/.llama/providers.d/
ENTRYPOINT ["/opt/app-root/entrypoint.sh"]