Skip to content

Conversation

@QW1CKS
Copy link

@QW1CKS QW1CKS commented Feb 10, 2026

Multi-stage build using oven/bun with Playwright Chromium support. docker-compose configured for interactive CLI mode with .env and persistent settings volume.

Multi-stage build using oven/bun with Playwright Chromium support.
docker-compose configured for interactive CLI mode with .env and
persistent settings volume.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 10, 2026 02:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds containerization for running Dexter locally via Docker, targeting a Bun-based runtime with Playwright Chromium available and an interactive TTY for the Ink CLI.

Changes:

  • Add Dockerfile with multi-stage Bun build and explicit Playwright Chromium installation.
  • Add docker-compose.yml service configured for interactive CLI usage and persistent .dexter settings.
  • Add .dockerignore to reduce build context and prevent copying local secrets/state.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docker-compose.yml Defines a dexter service for interactive CLI runs and persists /app/.dexter via a named volume.
Dockerfile Builds a Bun image, installs OS deps for Chromium, copies dependencies, and installs Playwright Chromium.
.dockerignore Excludes common local/dev artifacts and secrets from the Docker build context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +6
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

bun install --frozen-lockfile will still execute the postinstall script from package.json (which runs playwright install chromium). As written, the deps stage will download Chromium once during bun install, and the final stage downloads it again in the explicit bunx playwright install chromium step. Consider setting PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 (or otherwise disabling postinstall) for the deps stage, so the browser is downloaded exactly once in the final stage (or alternatively copy the Playwright browser cache from the deps stage into the final stage).

Copilot uses AI. Check for mistakes.
Comment on lines +23 to +24
# Install Playwright Chromium (skipped in bun install since postinstall
# only runs in non-frozen mode; install it explicitly here)
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The comment about Playwright install being skipped because postinstall "only runs in non-frozen mode" appears inaccurate given the repo’s postinstall script and is likely to confuse future maintainers. Please update the comment to reflect the real reason for the explicit install (e.g., browser binaries aren’t copied from the deps stage / are stored in the Playwright cache path).

Suggested change
# Install Playwright Chromium (skipped in bun install since postinstall
# only runs in non-frozen mode; install it explicitly here)
# Install Playwright Chromium explicitly because the browser binaries are not
# included when copying node_modules from the deps stage (they live in the

Copilot uses AI. Check for mistakes.
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