mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(worker): configuration defaults (#3821)
* improvement(worker): configuration defaults * update readmes * realtime curl import
This commit is contained in:
@@ -114,12 +114,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/execution/isolated-v
|
||||
# Copy the bundled PPTX worker artifact
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/pptx-worker.cjs ./apps/sim/dist/pptx-worker.cjs
|
||||
|
||||
# Copy the bundled BullMQ worker artifact and workspace packages it needs at runtime.
|
||||
# The bundle uses --packages=external so all node_modules are resolved at runtime.
|
||||
# npm packages come from the standalone node_modules; workspace packages need explicit copies.
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/worker.cjs ./apps/sim/dist/worker.cjs
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/packages/logger ./node_modules/@sim/logger
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/packages/db ./node_modules/@sim/db
|
||||
# Copy the bundled BullMQ worker (self-contained ESM bundle, only isolated-vm is external)
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/dist/worker ./apps/sim/dist/worker
|
||||
|
||||
# Guardrails setup with pip caching
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/apps/sim/lib/guardrails/requirements.txt ./apps/sim/lib/guardrails/requirements.txt
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
# ========================================
|
||||
FROM oven/bun:1.3.11-alpine AS base
|
||||
|
||||
RUN apk add --no-cache libc6-compat curl
|
||||
|
||||
# ========================================
|
||||
# Dependencies Stage: Install Dependencies
|
||||
# ========================================
|
||||
FROM base AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock turbo.json ./
|
||||
|
||||
Reference in New Issue
Block a user