ChandimaPrabath commited on
Commit
ae37a50
1 Parent(s): 473188a

fix Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -18,8 +18,8 @@ RUN npm install -g pm2
18
  FROM node:20-alpine
19
 
20
  # Create necessary directories with write permissions
21
- WORKDIR /app
22
- RUN mkdir -p /tmp/.next/cache/images && chown -R node:node /tmp/app
23
 
24
  # Copy the Next.js build and node_modules from the builder stage
25
  COPY --from=builder /app /tmp/app
 
18
  FROM node:20-alpine
19
 
20
  # Create necessary directories with write permissions
21
+ WORKDIR /tmp
22
+ RUN mkdir -p /tmp/app/.next/cache/images && chown -R node:node /tmp/app/.next/cache/images
23
 
24
  # Copy the Next.js build and node_modules from the builder stage
25
  COPY --from=builder /app /tmp/app