From 7ec8f6844035fd11b0c77b58bbe5390af9bf6b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Stach?= Date: Tue, 13 Oct 2026 21:24:04 +0200 Subject: [PATCH] Edited docker so it will build. --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f615333..b27cf3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,9 @@ FROM node:22-alpine AS builder WORKDIR /app # Install dependencies first (layer caching) -COPY package.json ./ -RUN npm install +COPY package.json bun.lock ./ +RUN npm install -g bun +RUN bun install # Copy application source code COPY . . @@ -29,8 +30,9 @@ ENV NODE_ENV=production ENV PORT=3000 # Install production dependencies only -COPY package.json ./ -RUN npm install --omit=dev && npm cache clean --force +COPY package.json bun.lock ./ +RUN npm install -g bun +RUN bun install --production # Copy built bundle from builder stage COPY --from=builder /app/dist ./dist