Skip to content

fix(mc): fix /built-plugins missing dir and consolidate Dockerfiles#8224

Merged
h0lybyte merged 2 commits intodevfrom
trunk/mc-docker-fix-1773810537
Mar 18, 2026
Merged

fix(mc): fix /built-plugins missing dir and consolidate Dockerfiles#8224
h0lybyte merged 2 commits intodevfrom
trunk/mc-docker-fix-1773810537

Conversation

@h0lybyte
Copy link
Member

Summary

  • Fix [CI] CI - Dev / Dev Docker Build — MC — Failed #8220: Shell operator precedence bug caused mkdir -p /built-plugins to be skipped when cargo build failed, making COPY --from=plugin-builder /built-plugins/ fail with "not found". Moved mkdir to a separate RUN before the build so the directory always exists.
  • Consolidate: Merged Dockerfile and Dockerfile.dev into a single Dockerfile with ARG VARIANT=prod|dev to select the entrypoint at build time. Updated ci-dev.yml, ci-mc-headless-e2e.yml, and project.json to pass --build-arg VARIANT=dev.

Changes

  • apps/mc/Dockerfile — unified Dockerfile with VARIANT build arg, fixed plugin build operator chain
  • apps/mc/Dockerfile.dev — deleted
  • .github/workflows/ci-dev.yml — use Dockerfile + build-args: VARIANT=dev
  • .github/workflows/ci-mc-headless-e2e.yml — same
  • apps/mc/project.json — same

Test plan

…rfiles

Shell operator precedence caused mkdir to be skipped when cargo build
failed, leaving /built-plugins missing for the final COPY stage.

Closes #8220
…ockerfile

Use ARG VARIANT=prod|dev to select entrypoint script at build time.
Removes Dockerfile.dev and updates CI workflows + project.json to pass
--build-arg VARIANT=dev where needed.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 0ed866b into dev Mar 18, 2026
7 checks passed
@h0lybyte h0lybyte deleted the trunk/mc-docker-fix-1773810537 branch March 18, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant