From 9b6f84be2700ff14d835f3d238d90ad7e8449819 Mon Sep 17 00:00:00 2001 From: nicholai Date: Wed, 10 Sep 2025 06:13:44 -0600 Subject: [PATCH] Fixed permissions for the fonts directory --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31641f1..827935f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,11 @@ FROM node:24-bookworm-slim AS builder WORKDIR /app -ENV NODE_ENV=development +# Set to production for build +ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 -# Install dependencies +# Install dependencies (including dev deps for build) COPY package*.json ./ RUN npm ci @@ -39,6 +40,10 @@ RUN npm ci --omit=dev COPY --from=builder /app/.next ./.next COPY --from=builder /app/public ./public +# Fix permissions for the fonts directory and other public assets +RUN chown -R node:node /app/public && \ + chmod -R 755 /app/public + # Use non-root user provided by the official Node image USER node