Twan07 commited on
Commit
ecde121
·
verified ·
1 Parent(s): e84523b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-slim
2
+
3
+ # Cài công cụ hệ thống cần thiết
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ python3 \
7
+ python3-pip \
8
+ curl \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Cài yt-dlp
12
+ RUN pip install yt-dlp
13
+
14
+ # Tạo thư mục làm việc
15
+ WORKDIR /app
16
+
17
+ # Cài dependency Node.js
18
+ COPY package.json .
19
+ RUN npm install
20
+
21
+ # Copy code app
22
+ COPY . .
23
+
24
+ # Expose port
25
+ EXPOSE 7860
26
+
27
+ # Start app
28
+ CMD ["node", "index.js"]