ChandimaPrabath commited on
Commit
ebf85b4
1 Parent(s): 8404cde

fix cache dir

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -22,9 +22,10 @@ WORKDIR /app
22
  # Copy the Next.js build and node_modules from the builder stage
23
  COPY --from=builder /app /app
24
 
25
- # Create the cache directory and symbolic link
26
- RUN mkdir -p /tmp/app/.next && \
27
- ln -s /tmp/app/.next/cache .next/cache
 
28
 
29
  # Install PM2 globally
30
  RUN npm install -g pm2
 
22
  # Copy the Next.js build and node_modules from the builder stage
23
  COPY --from=builder /app /app
24
 
25
+ # Create the cache directory and set permissions
26
+ RUN mkdir -p /tmp/app/.next/cache && \
27
+ chmod -R 777 /tmp/app/.next && \
28
+ ln -s /tmp/app/.next/cache /app/.next/cache
29
 
30
  # Install PM2 globally
31
  RUN npm install -g pm2