We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e49dcd5 + b904030 commit a15f073Copy full SHA for a15f073
Containerfile
@@ -2,6 +2,7 @@
2
FROM registry.access.redhat.com/ubi9/python-312-minimal AS builder
3
4
ARG APP_ROOT=/app-root
5
+ARG LSC_SOURCE_DIR=.
6
7
# UV_PYTHON_DOWNLOADS=0 : Disable Python interpreter downloads and use the system interpreter.
8
ENV UV_COMPILE_BYTECODE=0 \
@@ -15,8 +16,8 @@ RUN pip3.12 install uv
15
16
17
# Add explicit files and directories
18
# (avoid accidental inclusion of local directories or env files or credentials)
-COPY src ./src
19
-COPY pyproject.toml LICENSE README.md uv.lock ./
+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 ./
21
22
RUN uv sync --locked --no-install-project --no-dev
23
0 commit comments