Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Base image
FROM node:25-alpine AS base
FROM node:26-alpine AS base

# Install dependencies only when needed
FROM base AS deps
WORKDIR /app
COPY package.json package-lock.json* ./
# Install Sharp dependencies (linux-x64) and Playwright dependencies
RUN apk add --no-cache libc6-compat python3 make g++ vips-dev

Check failure on line 9 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Build Check

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`
RUN npm ci

Check failure on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Build Check

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

# Rebuild the source code only when needed
FROM base AS builder
Expand All @@ -17,7 +17,7 @@
# Generate Prisma Client
RUN npx prisma generate
# Build Next.js
RUN npm run build

Check failure on line 20 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Build Check

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
# Compile Workers (using tsc or just ensuring tsx is available)
# Since we use tsx for workers, we don't strictly need a build step for them if we copy src
# But for production we might want to compile. For now, running with tsx is fine.
Expand All @@ -38,7 +38,7 @@

# Create a group and user
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

Check failure on line 41 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Build Check

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

COPY --from=builder /app/public ./public

Expand All @@ -52,7 +52,7 @@
COPY --from=builder /app/package.json ./package.json

# We need tsx for workers in the runner image
RUN npm install -g tsx

Check failure on line 55 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Build Check

DL3016 warning: Pin versions in npm. Instead of `npm install <package>` use `npm install <package>@<version>`

USER nextjs

Expand Down
Loading