Skip to content

Commit 296fd89

Browse files
icecrasher321waleedlatif1
authored andcommitted
fix dockerfile
1 parent 879f0c9 commit 296fd89

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/sim/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"dev": "next dev --port 3000",
1212
"dev:webpack": "next dev --webpack",
1313
"dev:sockets": "bun run socket/index.ts",
14-
"dev:worker": "bun run worker/index.ts",
15-
"dev:full": "bunx concurrently -n \"App,Realtime,Worker\" -c \"cyan,magenta,yellow\" \"bun run dev\" \"bun run dev:sockets\" \"bun run dev:worker\"",
14+
"dev:full": "bunx concurrently -n \"App,Realtime,Worker\" -c \"cyan,magenta,yellow\" \"bun run dev\" \"bun run dev:sockets\" \"bun run worker\"",
1615
"load:workflow": "bun run load:workflow:baseline",
1716
"load:workflow:baseline": "BASE_URL=${BASE_URL:-http://localhost:3000} WARMUP_DURATION=${WARMUP_DURATION:-10} WARMUP_RATE=${WARMUP_RATE:-2} PEAK_RATE=${PEAK_RATE:-8} HOLD_DURATION=${HOLD_DURATION:-20} bunx artillery run scripts/load/workflow-concurrency.yml",
1817
"load:workflow:waves": "BASE_URL=${BASE_URL:-http://localhost:3000} WAVE_ONE_DURATION=${WAVE_ONE_DURATION:-10} WAVE_ONE_RATE=${WAVE_ONE_RATE:-6} QUIET_DURATION=${QUIET_DURATION:-5} WAVE_TWO_DURATION=${WAVE_TWO_DURATION:-15} WAVE_TWO_RATE=${WAVE_TWO_RATE:-8} WAVE_THREE_DURATION=${WAVE_THREE_DURATION:-20} WAVE_THREE_RATE=${WAVE_THREE_RATE:-10} bunx artillery run scripts/load/workflow-waves.yml",

docker/app.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/execution/isolated-v
114114
# Copy the bundled PPTX worker artifact
115115
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/pptx-worker.cjs ./apps/sim/dist/pptx-worker.cjs
116116

117-
# Copy the bundled BullMQ worker artifact and workspace packages it depends on
117+
# Copy the bundled BullMQ worker artifact and workspace packages it needs at runtime.
118+
# The bundle uses --packages=external so all node_modules are resolved at runtime.
119+
# npm packages come from the standalone node_modules; workspace packages need explicit copies.
118120
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/worker.cjs ./apps/sim/dist/worker.cjs
119-
COPY --from=builder --chown=nextjs:nodejs /app/packages ./packages
121+
COPY --from=builder --chown=nextjs:nodejs /app/packages/logger ./node_modules/@sim/logger
122+
COPY --from=builder --chown=nextjs:nodejs /app/packages/db ./node_modules/@sim/db
120123

121124
# Guardrails setup with pip caching
122125
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/guardrails/requirements.txt ./apps/sim/lib/guardrails/requirements.txt

0 commit comments

Comments
 (0)