Fixed permissions for the fonts directory
This commit is contained in:
parent
59d8e7d348
commit
9b6f84be27
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user