Skip to content

Commit 5bae2cd

Browse files
committed
fix: ensure runner user is UID 1000, chown entrypoint
1 parent 0f88da9 commit 5bae2cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
1818
# pnpm (global, available to all users)
1919
RUN npm install -g pnpm@latest
2020

21-
# Runner user
22-
RUN useradd -m -s /bin/bash runner
21+
# Runner user (UID 1000 to match k8s securityContext)
22+
RUN useradd -m -s /bin/bash -u 1000 runner
2323

2424
# Rust (installed as runner user)
2525
USER runner
@@ -35,7 +35,7 @@ RUN mkdir -p /actions-runner && cd /actions-runner \
3535
&& ./bin/installdependencies.sh \
3636
&& chown -R runner:runner /actions-runner
3737

38-
COPY entrypoint.sh /actions-runner/entrypoint.sh
38+
COPY --chown=runner:runner entrypoint.sh /actions-runner/entrypoint.sh
3939
RUN chmod +x /actions-runner/entrypoint.sh
4040

4141
USER runner

0 commit comments

Comments
 (0)