fix dockerfile: use bun instead of npm, add .dockerignore

This commit is contained in:
2026-01-29 16:11:38 +00:00
parent ae0bf107db
commit 7494bf7520
2 changed files with 14 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
# Stage 1: Build
FROM node:20-alpine AS build
FROM oven/bun:1 AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN npm install
RUN bun install --frozen-lockfile
COPY . .
ARG VITE_NKODE_API_URL=https://api.nkode.donovankelly.xyz
ENV VITE_NKODE_API_URL=$VITE_NKODE_API_URL
RUN npm run build
RUN bun run build
# Stage 2: Serve
FROM nginx:alpine