Storage problem handling fix1

This commit is contained in:
michi 2025-08-26 15:23:44 +02:00
parent f49ca13711
commit 3797c83c28
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install sharp
COPY . .
RUN npm run build
@ -22,8 +23,12 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/data ./data
# Set correct permissions for data directory
# Create .next/cache directory and set permissions
RUN mkdir -p ./.next/cache
RUN chown -R nextjs:nodejs ./data
RUN chown -R nextjs:nodejs ./.next/cache
RUN chmod -R 755 ./data
RUN chmod -R 755 ./.next/cache
USER nextjs