FarelDeveloper commited on
Commit
c947df0
·
verified ·
1 Parent(s): 46561d4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-bullseye
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy package files dulu (biar cache efisien)
7
+ COPY package*.json ./
8
+
9
+ # Install dependencies
10
+ RUN npm install --production
11
+
12
+ # Copy semua file project
13
+ COPY . .
14
+
15
+ # Set port HuggingFace Spaces
16
+ ENV PORT=7860
17
+ EXPOSE 7860
18
+
19
+ # Run app
20
+ CMD ["node", "index.js"]