Arifzyn commited on
Commit
f01bb93
·
verified ·
1 Parent(s): fe7a58c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan Node.js versi LTS
2
+ FROM node:20-alpine
3
+
4
+ # Set working directory utama
5
+ WORKDIR /app
6
+
7
+ # Install git
8
+ RUN apk add --no-cache git
9
+
10
+ # Clone repo Cobalt
11
+ RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
12
+
13
+ # Pindah ke folder api
14
+ WORKDIR /app/cobalt/api
15
+
16
+ # Install dependencies API
17
+ RUN npm install --production
18
+
19
+ # Expose port Hugging Face default
20
+ ENV PORT=7860
21
+ EXPOSE 7860
22
+
23
+ # Start API
24
+ CMD ["npm", "start"]