Skip to content

Commit a15f073

Browse files
authored
Merge pull request #283 from omertuc/dirhack
Containerfile COPY adjustment
2 parents e49dcd5 + b904030 commit a15f073

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)