ChandimaPrabath
commited on
Commit
•
0454be9
1
Parent(s):
c46511e
fix
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -11,12 +11,12 @@ RUN npm install
|
|
11 |
COPY frontend ./
|
12 |
RUN npm run build
|
13 |
|
14 |
-
# Stage 2: Serve the Next.js application using PM2 and Nginx
|
15 |
-
FROM bitnami/nginx:1.26.1
|
16 |
-
|
17 |
# Install PM2 globally
|
18 |
RUN npm install -g pm2
|
19 |
|
|
|
|
|
|
|
20 |
# Copy custom Nginx configuration
|
21 |
COPY nginx.conf /opt/bitnami/nginx/conf/nginx.conf
|
22 |
|
|
|
11 |
COPY frontend ./
|
12 |
RUN npm run build
|
13 |
|
|
|
|
|
|
|
14 |
# Install PM2 globally
|
15 |
RUN npm install -g pm2
|
16 |
|
17 |
+
# Stage 2: Serve the Next.js application using PM2 and Nginx
|
18 |
+
FROM bitnami/nginx:1.26.1
|
19 |
+
|
20 |
# Copy custom Nginx configuration
|
21 |
COPY nginx.conf /opt/bitnami/nginx/conf/nginx.conf
|
22 |
|