From 6aeb36cb1c2ffbb38c9584d12ef77f623c4fab31 Mon Sep 17 00:00:00 2001 From: Tethys Plex <180962954+TethysPlex@users.noreply.github.com> Date: Thu, 22 Jan 2026 16:04:44 +1100 Subject: [PATCH] upd --- web-v2/Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web-v2/Dockerfile b/web-v2/Dockerfile index c7bd5104..d18b7933 100644 --- a/web-v2/Dockerfile +++ b/web-v2/Dockerfile @@ -1,4 +1,11 @@ -FROM oven/bun:latest AS builder +FROM oven/bun:latest AS deps + +WORKDIR /app + +COPY package.json bun.lock ./ +RUN bun install --frozen-lockfile + +FROM node:20-bookworm-slim AS builder WORKDIR /app @@ -7,11 +14,9 @@ ARG VITE_REACT_APP_SERVER_URL ENV VITE_API_BASE_URL=${VITE_API_BASE_URL} ENV VITE_REACT_APP_SERVER_URL=${VITE_REACT_APP_SERVER_URL} -COPY package.json bun.lock ./ -RUN bun install --frozen-lockfile - +COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN bun run build +RUN node scripts/vite.mjs build FROM nginx:alpine