Severian commited on
Commit
20033ed
·
1 Parent(s): 7a3407b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,11 +1,20 @@
1
  # Use an official Node runtime as the base image
2
  FROM node:18
3
 
 
 
 
4
  # Clone the GitHub repository
5
- RUN git clone https://github.com/severian42/New-Nexus.git
 
 
 
6
 
7
- WORKDIR "New-Nexus"
8
- RUN npm i
9
  RUN npm run build
 
 
10
  EXPOSE 3000
11
- CMD ["npm", "run", "start"]
 
 
 
1
  # Use an official Node runtime as the base image
2
  FROM node:18
3
 
4
+ # Set the working directory in the container to /app
5
+ WORKDIR /app
6
+
7
  # Clone the GitHub repository
8
+ RUN git clone https://github.com/severian42/New-Nexus.git .
9
+
10
+ # Install the application dependencies
11
+ RUN npm i
12
 
13
+ # Build the application
 
14
  RUN npm run build
15
+
16
+ # Expose port 3000 for the application
17
  EXPOSE 3000
18
+
19
+ # Define the command to run the application
20
+ CMD [ "node", ".next/standalone/server.js" ]