r3hab commited on
Commit
6dda508
·
verified ·
1 Parent(s): 96ce5ec

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use lightweight Node.js Alpine image
2
+ FROM node:18-alpine
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy server file
8
+ COPY server.js .
9
+
10
+ # Expose port (default for HTTP)
11
+ EXPOSE 3000
12
+
13
+ # Run the server
14
+ CMD ["node", "server.js"]