mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
fix(agent): resolve workspace dependency @memoh/agent in Docker build (#94)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user