Mokshith commited on
Commit
5da6b77
·
1 Parent(s): 919f56a
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Node.js runtime as the base image
2
+ FROM node:14
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy package.json and package-lock.json to the working directory
8
+ COPY package*.json ./
9
+
10
+ # Install the application dependencies
11
+ RUN npm install
12
+
13
+ # Copy the rest of the application code to the working directory
14
+ COPY . .
15
+
16
+ # Set the environment variables
17
+ ENV VIEW_PORT=3000
18
+ ENV API_PORT=8000
19
+
20
+ # Expose the ports
21
+ EXPOSE $VIEW_PORT
22
+ EXPOSE $API_PORT
23
+
24
+ # Define the command to run your Node.js application
25
+ CMD ["npm", "run","dev"]