Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -10,6 +10,9 @@ RUN git clone https://github.com/ChrisCindy/node-web-console.git .
|
|
10 |
# Ensure correct permissions for the /app/static directory
|
11 |
RUN mkdir -p /app/static && chmod -R 777 /app/static
|
12 |
|
|
|
|
|
|
|
13 |
# Install dependencies
|
14 |
RUN npm install
|
15 |
|
@@ -26,4 +29,4 @@ ENV NODE_ENV=production
|
|
26 |
RUN npm run client:build
|
27 |
|
28 |
# Command to run the server using pm2
|
29 |
-
CMD ["
|
|
|
10 |
# Ensure correct permissions for the /app/static directory
|
11 |
RUN mkdir -p /app/static && chmod -R 777 /app/static
|
12 |
|
13 |
+
# Install pm2 globally
|
14 |
+
RUN npm install -g pm2
|
15 |
+
|
16 |
# Install dependencies
|
17 |
RUN npm install
|
18 |
|
|
|
29 |
RUN npm run client:build
|
30 |
|
31 |
# Command to run the server using pm2
|
32 |
+
CMD ["pm2", "start", "server/app.js"]
|