Skip to content

Commit 65430eb

Browse files
jameswnlTamiTakamiya
authored andcommitted
production target for building image (#21)
1 parent 6460b51 commit 65430eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Containerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FROM ${LIGHTSPEED_RAG_CONTENT_IMAGE} as lightspeed-rag-content
77

88
FROM ${LIGHTSPEED_RAG_EMBEDDINGS_IMAGE} as lightspeed-rag-embeddings
99

10-
FROM registry.access.redhat.com/ubi9/ubi-minimal
10+
FROM registry.access.redhat.com/ubi9/ubi-minimal AS production
1111

1212
ARG APP_ROOT=/app-root
1313

@@ -32,9 +32,9 @@ COPY --from=lightspeed-rag-embeddings /rag/embeddings_model ./embeddings_model
3232

3333
# Add explicit files and directories
3434
# (avoid accidental inclusion of local directories or env files or credentials)
35-
COPY runner.py pyproject.toml LICENSE README.md ./
35+
COPY runner.py requirements.txt ./
3636

37-
RUN pip3.11 install --no-cache-dir .
37+
RUN pip3.11 install --no-cache-dir -r requirements.txt
3838

3939
COPY ols ./ols
4040

0 commit comments

Comments
 (0)