From 238da443bcc2f9a70f2f0f68f194c555fdc050d5 Mon Sep 17 00:00:00 2001 From: danielvici123 Date: Sun, 7 Dec 2025 01:08:08 +0100 Subject: [PATCH] update dockerfile to bun --- Dockerfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 925c76f..91a08fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,25 @@ +# ---------- Build-Stage ---------- FROM node:22-alpine AS builder WORKDIR /app + +RUN apk add --no-cache curl \ + && curl -fsSL https://bun.sh/install | bash \ + && ln -s /root/.bun/bin/bun /usr/local/bin/bun + COPY package*.json ./ -RUN npm ci --only=production +RUN bun install + COPY . . -RUN npm install -RUN npm run build +RUN bun run build RUN ls -la dist/tools-website && ls -la dist/tools-website/browser +# ---------- Runtime-Stage ---------- FROM node:22-alpine WORKDIR /app + RUN npm install -g serve@14 + COPY --from=builder /app/dist/tools-website ./dist/tools-website + EXPOSE 3000 CMD ["serve", "-s", "dist/tools-website/browser", "-l", "3000"]