Skip to content

Commit b901e89

Browse files
committed
Switch build system from Bun to pnpm and Node
Replaces Bun with Node.js and pnpm in the Dockerfile for building the project. Removes bun.lock and adds pnpm-lock.yaml to reflect the new package manager. Updates dependency installation and build commands accordingly.
1 parent 161dcff commit b901e89

File tree

3 files changed

+6420
-1352
lines changed

3 files changed

+6420
-1352
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
# syntax = docker/dockerfile:1
22

3-
ARG BUN_VERSION=1.3.2
4-
FROM oven/bun:${BUN_VERSION}-slim AS build
3+
FROM node:22-slim AS build
54

65
WORKDIR /app
76
ENV NODE_ENV="production"
87

8+
# Install pnpm
9+
RUN corepack enable && corepack prepare pnpm@latest --activate
10+
911
# Install packages needed for sharp native module
1012
RUN apt-get update -qq && \
1113
apt-get install --no-install-recommends -y build-essential pkg-config python-is-python3 && \
1214
rm -rf /var/lib/apt/lists/*
1315

1416
# Install dependencies
15-
COPY bun.lock package.json ./
16-
RUN bun install
17+
COPY package.json pnpm-lock.yaml* ./
18+
RUN pnpm install --frozen-lockfile || pnpm install
1719

1820
# Copy and build
1921
COPY . .
20-
RUN bun run build
22+
RUN pnpm run build
2123

2224
# Final stage - minimal nginx
2325
FROM nginx:alpine

0 commit comments

Comments
 (0)