Skip to content

ambient-runner Dockerfile requires non-standard build context #1259

Description

@ktdreyer
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

Problem

The ambient-runner Dockerfile uses COPY ambient-runner /app/ambient-runner, which assumes the build context is components/runners/ — one level above the Dockerfile's directory. This is unlike every other component, where the build context matches the Dockerfile's parent directory:

Component Dockerfile Context COPY pattern
backend components/backend/Dockerfile components/backend/ COPY . .
frontend components/frontend/Dockerfile components/frontend/ COPY . .
operator components/operator/Dockerfile components/operator/ COPY . .
public-api components/public-api/Dockerfile components/public-api/ COPY . .
state-sync components/runners/state-sync/Dockerfile components/runners/state-sync/ COPY *.sh ...
ambient-runner components/runners/ambient-runner/Dockerfile components/runners/ COPY ambient-runner ...

The GitHub Actions workflow in prod-release-deploy.yaml handles this by explicitly setting context to ./components/runners, but build systems that derive context from the Dockerfile location (e.g. Konflux) fail with:

COPY ambient-runner /app/ambient-runner
Error: copier: stat: "/ambient-runner": no such file or directory

Proposed fix

Change the Dockerfile's COPY to use . (current directory) instead of the subdirectory name:

-COPY ambient-runner /app/ambient-runner
+COPY . /app/ambient-runner

Then update the GitHub Actions workflow context to match:

-{"name":"ambient-runner","context":"./components/runners","image":"...","dockerfile":"./components/runners/ambient-runner/Dockerfile"},
+{"name":"ambient-runner","context":"./components/runners/ambient-runner","image":"...","dockerfile":"./components/runners/ambient-runner/Dockerfile"},

This makes the runner consistent with every other component and removes the special-case context override.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ambient-code:auto-fixAmber agent: automated low-risk fixes (formatting, linting)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions