File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -753,11 +753,26 @@ RUN set -eux; \
753753# Stage 3: Runtime Config Check
754754# -----------------------------------------------------------------------------
755755# Lightweight validation stage for local pre-commit Docker checks.
756- # Verifies runtime config assets and COPY paths without rebuilding heavy Rust
757- # and JS artifacts in later stages.
758- FROM base AS runtime-config-check
756+ # Verifies runtime config assets and COPY paths without rebuilding base/toolchain
757+ # layers or heavy Rust/ JS artifacts in later stages.
758+ FROM ubuntu:26.04 AS runtime-config-check
759759
760760USER root
761+ RUN set -eux; \
762+ if ! getent group opencoder >/dev/null; then \
763+ if getent group 1000 >/dev/null; then \
764+ groupadd opencoder; \
765+ else \
766+ groupadd --gid 1000 opencoder; \
767+ fi; \
768+ fi; \
769+ if ! id -u opencoder >/dev/null 2>&1; then \
770+ if getent passwd 1000 >/dev/null; then \
771+ useradd -m -s /bin/bash --gid opencoder opencoder; \
772+ else \
773+ useradd -m -s /bin/bash --uid 1000 --gid opencoder opencoder; \
774+ fi; \
775+ fi
761776COPY --chown=root:root --chmod=0644 packages/core/src/docker/files/pam/opencode /etc/pam.d/opencode
762777COPY --chown=root:root --chmod=0644 packages/core/src/docker/files/opencode-broker.service /etc/systemd/system/opencode-broker.service
763778COPY --chown=root:root --chmod=0644 packages/core/src/docker/files/opencode.service /etc/systemd/system/opencode.service
You can’t perform that action at this time.
0 commit comments