fix(agent): resolve workspace dependency @memoh/agent in Docker build (#94)

This commit is contained in:
Ringo.Typowriter
2026-02-22 13:32:31 +08:00
committed by GitHub
parent 3669027c95
commit 08daa83178
+3 -1
View File
@@ -2,9 +2,10 @@ FROM oven/bun:1 AS builder
WORKDIR /build
# Set up workspace structure so bun can resolve @memoh/config
# Set up workspace structure so bun can resolve workspace deps (@memoh/config, @memoh/agent)
COPY agent/package.json agent/bun.lock* ./agent/
COPY packages/config/package.json ./packages/config/package.json
COPY packages/agent/package.json ./packages/agent/package.json
# Create root package.json with workspace config
RUN echo '{"name":"@memoh/monorepo","private":true,"workspaces":["agent","packages/*"]}' > package.json
@@ -13,6 +14,7 @@ RUN cd agent && bun install
# Copy source files
COPY packages/config/ ./packages/config/
COPY packages/agent/ ./packages/agent/
COPY agent/ ./agent/
RUN cd agent && bun run build --external jsdom