Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions forge-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ COPY opencode/packages ./opencode/packages
COPY opencode/patches ./opencode/patches
COPY forge-ui/package.json ./forge-ui/

# Drop unused workspace packages (desktop, console, storybook, docs, web) and strip patchedDependencies
# Drop unused workspace packages (desktop, console, storybook, docs, web), strip patchedDependencies, and strip scripts.prepare
RUN rm -rf opencode/packages/desktop opencode/packages/console opencode/packages/storybook opencode/packages/docs opencode/packages/web
RUN jq 'del(.patchedDependencies)' opencode/package.json > opencode/package.tmp.json && mv opencode/package.tmp.json opencode/package.json
RUN jq 'del(.patchedDependencies) | del(.scripts.prepare)' opencode/package.json > opencode/package.tmp.json && mv opencode/package.tmp.json opencode/package.json

# Strip bunfig.toml's minimumReleaseAge before install.
RUN sed -i '/minimumReleaseAge/d' opencode/bunfig.toml || true
Expand Down
6 changes: 3 additions & 3 deletions opencode/Dockerfile.forge
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ COPY packages ./packages
# patches/ holds bun patchedDependencies referenced in package.json.
COPY patches ./patches

# Strip ../forge-ui from workspaces and strip patchedDependencies so bun install
# doesn't invoke Bun's buggy native patch applier on NAS storage.
RUN jq '.workspaces.packages |= map(select(. != "../forge-ui")) | del(.patchedDependencies)' package.json > package.tmp.json \
# Strip ../forge-ui from workspaces, strip patchedDependencies (to bypass Bun's buggy NAS patch applier),
# and strip scripts.prepare (husky git hooks don't belong in container builds).
RUN jq '.workspaces.packages |= map(select(. != "../forge-ui")) | del(.patchedDependencies) | del(.scripts.prepare)' package.json > package.tmp.json \
&& mv package.tmp.json package.json \
&& rm -rf packages/desktop

Expand Down
Loading