Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions images/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ COPY scripts/optio-gh-wrapper /usr/local/bin/optio-gh-wrapper
COPY scripts/optio-glab-wrapper /usr/local/bin/optio-glab-wrapper
RUN chmod +x /usr/local/bin/optio-git-credential /usr/local/bin/optio-gh-wrapper /usr/local/bin/optio-glab-wrapper

# Non-root user (UID 1000 to match k8s securityContext)
# Ubuntu 24.04 ships with 'ubuntu' user at UID 1000 — remove it first
RUN userdel -r ubuntu 2>/dev/null || true \
&& groupadd -g 1000 agent \
&& useradd -m -s /bin/bash -u 1000 -g 1000 agent \
# Non-root user (UID 1001 to match k8s securityContext)
RUN groupadd -g 1001 agent \
&& useradd -m -s /bin/bash -u 1001 -g 1001 agent \
&& chown -R agent:agent /workspace
USER agent
WORKDIR /workspace
Expand Down
Loading