improvement(worker): configuration defaults (#3821)

* improvement(worker): configuration defaults

* update readmes

* realtime curl import
This commit is contained in:
Vikhyath Mondreti
2026-03-27 19:54:56 -07:00
committed by GitHub
parent 8f3e864751
commit d2c3c1c39e
13 changed files with 52 additions and 28 deletions
+2 -6
View File
@@ -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
+2 -1
View File
@@ -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 ./