Skip to content

fix(infra): use apps/web paths in Containerfile after monorepo move#1110

Merged
thebentern merged 1 commit into
mainfrom
fix-containerfile-apps-web
Jun 15, 2026
Merged

fix(infra): use apps/web paths in Containerfile after monorepo move#1110
thebentern merged 1 commit into
mainfrom
fix-containerfile-apps-web

Conversation

@thebentern

Copy link
Copy Markdown
Contributor

Problem

The Release Web workflow fails at the Build and push image step:

ERROR: failed to compute cache key: "/packages/web/infra/default.conf": not found
ERROR: "/packages/web/dist": not found

(see failed run: https://github.com/meshtastic/web/actions/runs/27570791551)

Cause

#1097 moved the web app packages/web → apps/web. The workflow was updated accordingly (working-directory: apps/web, file: ./apps/web/infra/Containerfile, path: apps/web/dist/build.tar), but the ADD/COPY paths inside apps/web/infra/Containerfile still pointed at ./packages/web/.... Since the image is built with the repo root as context, those paths no longer resolve.

Fix

Repoint the two lines to ./apps/web/dist and ./apps/web/infra/default.conf (both exist).

Verification

Built the image locally with the repo root as context against the real apps/web build output — the previously-failing ADD/COPY steps now succeed and the image exports cleanly.

Note: the local apps/web docker:build npm script still uses an apps/web-relative context and is independently stale — not touched here to keep this scoped to the release blocker.

The Release Web workflow builds the Docker image with the repo root as
context (file: ./apps/web/infra/Containerfile), but the Containerfile's
ADD/COPY still referenced ./packages/web/dist and
./packages/web/infra/default.conf. After #1097 moved the web app to
apps/web, those paths no longer exist, so buildx failed with
'"/packages/web/infra/default.conf": not found'.

Point both at ./apps/web/. Verified with a local multi-stage docker
build against the apps/web build output.
Copilot AI review requested due to automatic review settings June 15, 2026 20:03
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web-test Ready Ready Preview, Comment Jun 15, 2026 8:04pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Release Web container build after the monorepo move by updating the ADD/COPY source paths inside the Nginx Containerfile to match the new apps/web location (the image build context is the repo root in the release workflow).

Changes:

  • Update the static asset ADD path from ./packages/web/dist./apps/web/dist.
  • Update the Nginx config COPY path from ./packages/web/infra/default.conf./apps/web/infra/default.conf.

@thebentern
thebentern merged commit 6b298d1 into main Jun 15, 2026
5 checks passed
@thebentern
thebentern deleted the fix-containerfile-apps-web branch June 15, 2026 20:26
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.

2 participants