diff --git a/agent-reactflow/apps/backend/Dockerfile b/agent-reactflow/apps/backend/Dockerfile deleted file mode 100644 index 2417164..0000000 --- a/agent-reactflow/apps/backend/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# ------- Image ---------- - -FROM node:20-bullseye-slim AS installer - -RUN apt-get update \ - && apt-get install -y ca-certificates \ - && rm -rf /var/lib/apt/lists/* - -COPY ./package.json ./app/package.json -COPY ./tsconfig.json ./app/tsconfig.json - - -WORKDIR /app - -RUN npm install - -# ------- Builder ---------- - -FROM node:20-bullseye-slim AS builder -WORKDIR /app -COPY --from=installer /app . -COPY ./src ./src - -RUN npm run build - -# ------- Runner ---------- - -FROM node:20-bullseye-slim AS runner - -RUN addgroup --system --gid 1001 service -RUN adduser --system --uid 1001 service -USER service - -WORKDIR /app - -COPY --from=builder /app . - -ENV NODE_OPTIONS=”--max-old-space-size=4096″ - -CMD ["node", "dist/services"] \ No newline at end of file diff --git a/agent-reactflow/package.json b/agent-reactflow/package.json index d8b5edc..5e91e48 100644 --- a/agent-reactflow/package.json +++ b/agent-reactflow/package.json @@ -2,12 +2,12 @@ "name": "agent-reactflow", "private": true, "scripts": { - "build": "turbo run build", - "dev": "turbo run dev", + "build": "turbo run build --env-mode=loose", + "dev": "turbo run dev --env-mode=loose", "lint": "turbo run lint", "format": "prettier --write \"**/*.{ts,tsx,md}\"", "check-types": "turbo run check-types", - "start": "turbo run start" + "start": "turbo run start --env-mode=loose" }, "devDependencies": { "prettier": "^3.5.3", diff --git a/agent-reactflow/turbo.json b/agent-reactflow/turbo.json index 629c519..a11b46d 100644 --- a/agent-reactflow/turbo.json +++ b/agent-reactflow/turbo.json @@ -6,6 +6,7 @@ "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", ".env*"], "outputs": [".next/**", "!.next/cache/**"] + }, "lint": { "dependsOn": ["^lint"]