Skip to content

Commit 00d26f2

Browse files
committed
fix: Switch to root user for modifying site-packages in Dockerfile
1 parent e073a55 commit 00d26f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ LABEL com.bauer-group.features="jira-cloud,github-issues"
4646
# Copy Custom Messaging Backends
4747
# =============================================================================
4848
# These backends extend Bugsink's alert system with Jira Cloud and GitHub Issues
49+
# Note: Base image uses USER bugsink, we need root to modify site-packages
50+
51+
USER root
4952

5053
# Bugsink is installed as a Python package in site-packages
5154
ENV BUGSINK_SITE_PACKAGES=/usr/local/lib/python3.12/site-packages
@@ -61,9 +64,7 @@ COPY patches/register_backends.py /tmp/register_backends.py
6164
# Apply Backend Registration Patch
6265
# =============================================================================
6366
# This modifies the Bugsink backend registry to include our custom backends
64-
# Note: Base image uses USER bugsink, we need root to modify site-packages
6567

66-
USER root
6768
RUN python /tmp/register_backends.py && \
6869
rm -f /tmp/register_backends.py
6970

0 commit comments

Comments
 (0)