Aqso commited on
Commit
f6acca4
·
verified ·
1 Parent(s): 1e59182

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan base image Node yang stabil
2
+ FROM node:20-bullseye
3
+
4
+ # Install dependencies, ttyd, dan cloudflared
5
+ RUN apt-get update && apt-get install -y ttyd wget curl \
6
+ && wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb \
7
+ && dpkg -i cloudflared-linux-amd64.deb \
8
+ && rm cloudflared-linux-amd64.deb
9
+
10
+ # Setup working directory
11
+ WORKDIR /app
12
+ COPY . .
13
+
14
+ # Install dependencies bot (jika ada package.json)
15
+ RUN npm install
16
+ RUN npm install -g pm2
17
+
18
+ # Expose port wajib HF
19
+ EXPOSE 7860
20
+
21
+ # Gunakan script entrypoint untuk multi-process
22
+ COPY start.sh /start.sh
23
+ RUN chmod +x /start.sh
24
+ CMD ["/start.sh"]