wuhp commited on
Commit
dcb7113
·
verified ·
1 Parent(s): 2410d30

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DeployOps Monitor Dockerfile
2
+
3
+ FROM node:20-alpine
4
+
5
+ # Set working directory
6
+ WORKDIR /app
7
+
8
+ # Copy package files
9
+ COPY package*.json ./
10
+
11
+ # Install dependencies (including devDependencies required for Vite build and tsx)
12
+ RUN npm install
13
+
14
+ # Copy application source code
15
+ COPY . .
16
+
17
+ # Build the React frontend
18
+ RUN npm run build
19
+
20
+ # Expose the application port
21
+ EXPOSE 3000
22
+
23
+ # Start the Node.js backend which serves the API and the static React build
24
+ CMD ["npm", "start"]