Storage problem handling fix1
This commit is contained in:
parent
f49ca13711
commit
3797c83c28
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user