From e9285418b1294eb7b54a163ab3cab968622ea4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 15 Nov 2025 15:40:34 +0100 Subject: [PATCH] feat: add pnpm build step to Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Node.js and pnpm to build stage to run `pnpm build:all` before Jekyll build. This ensures all assets are properly built before site generation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b20f422..7c86e53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,18 +2,28 @@ FROM ruby:3.4.1-alpine AS builder # Install build dependencies -RUN apk add --no-cache build-base +RUN apk add --no-cache build-base nodejs npm + +# Enable corepack for pnpm +RUN corepack enable # Set working directory WORKDIR /app -# Copy Gemfile and install dependencies +# Copy package files and install Node dependencies +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile + +# Copy Gemfile and install Ruby dependencies COPY Gemfile Gemfile.lock ./ RUN bundle install # Copy source files COPY . . +# Build assets with pnpm +RUN pnpm build:all + # Build Jekyll site RUN bundle exec jekyll build