Skip to content

Commit b904030

Browse files
committed
Containerfile COPY adjustment
We need to do some ugly hack in our assisted-chat repo to make our pipelines work correctly, and it would make it easier for us if we could configure where this Containerfile copies its files from. It's a bit hard to explain the motivation, but if you don't mind it we would appreciate it if we can have this until we can get rid of the hack in the assisted-chat repo, when LSC has proper releases that we can use out of the box.
1 parent e49dcd5 commit b904030

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Containerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
FROM registry.access.redhat.com/ubi9/python-312-minimal AS builder
33

44
ARG APP_ROOT=/app-root
5+
ARG LSC_SOURCE_DIR=.
56

67
# UV_PYTHON_DOWNLOADS=0 : Disable Python interpreter downloads and use the system interpreter.
78
ENV UV_COMPILE_BYTECODE=0 \
@@ -15,8 +16,8 @@ RUN pip3.12 install uv
1516

1617
# Add explicit files and directories
1718
# (avoid accidental inclusion of local directories or env files or credentials)
18-
COPY src ./src
19-
COPY pyproject.toml LICENSE README.md uv.lock ./
19+
COPY ${LSC_SOURCE_DIR}/src ./src
20+
COPY ${LSC_SOURCE_DIR}/pyproject.toml ${LSC_SOURCE_DIR}/LICENSE ${LSC_SOURCE_DIR}/README.md ${LSC_SOURCE_DIR}/uv.lock ./
2021

2122
RUN uv sync --locked --no-install-project --no-dev
2223

0 commit comments

Comments
 (0)