Skip to content

Commit 82faa80

Browse files
committed
Merge branch 'main' into change_to_pip
2 parents d8e13a3 + 1852436 commit 82faa80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Containerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ RUN pip3.12 install --no-cache-dir --upgrade pip && \
1616
WORKDIR /app
1717

1818
# Set ownership to the user we created. Group 0 (root) is important for OpenShift compatibility.
19-
RUN chown 1001:0 /app
19+
RUN chown -R 1001:0 /app && \
20+
chgrp -R 0 /app && \
21+
chmod -R g+rwX /app
2022

2123
# Switch to the non-root user *before* copying files and installing dependencies
2224
USER 1001
@@ -29,9 +31,7 @@ COPY README.md ./
2931
COPY ./src/ ./
3032

3133
# Install dependencies
32-
RUN uv sync --no-cache --locked && \
33-
chgrp -R 0 /app && \
34-
chmod -R g+rwX /app
34+
RUN uv sync --no-cache --locked
3535

3636
# Environment variables (set these when running the container)
3737
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)

0 commit comments

Comments
 (0)