ChandimaPrabath
commited on
Commit
•
473188a
1
Parent(s):
d0e894b
fix Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -19,10 +19,10 @@ 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
|
23 |
|
24 |
# Copy the Next.js build and node_modules from the builder stage
|
25 |
-
COPY --from=builder /app /app
|
26 |
|
27 |
# Install PM2 globally
|
28 |
RUN npm install -g pm2
|
|
|
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
|
26 |
|
27 |
# Install PM2 globally
|
28 |
RUN npm install -g pm2
|