From 830bcc4756d0376134b3e11a272d8bfddc45dbce Mon Sep 17 00:00:00 2001 From: -Puter <22245429+puterhimself@users.noreply.github.com> Date: Wed, 29 Jul 2026 07:09:07 +0530 Subject: [PATCH] deploy: build applications on Node base --- apps/web/Dockerfile | 9 +++++---- packages/agents/Dockerfile | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index ac32b2a..5b208e9 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,4 +1,8 @@ -FROM oven/bun:1.3.14 AS build +FROM oven/bun:1.3.14 AS bun + +FROM node:24-bookworm-slim AS build + +COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun WORKDIR /app @@ -6,12 +10,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ g++ \ make \ - nodejs \ python3 \ && rm -rf /var/lib/apt/lists/* -ENV PATH=/usr/bin:$PATH - COPY . . ARG VITE_AUTH_URL ARG VITE_CONVEX_URL diff --git a/packages/agents/Dockerfile b/packages/agents/Dockerfile index 11e6491..f0c1ba6 100644 --- a/packages/agents/Dockerfile +++ b/packages/agents/Dockerfile @@ -1,4 +1,8 @@ -FROM oven/bun:1.3.14 AS build +FROM oven/bun:1.3.14 AS bun + +FROM node:24-bookworm-slim AS build + +COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun WORKDIR /app @@ -6,12 +10,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ g++ \ make \ - nodejs \ python3 \ && rm -rf /var/lib/apt/lists/* -ENV PATH=/usr/bin:$PATH - COPY . . RUN bun install --frozen-lockfile RUN bun run --filter @code/agents build