TDN-M commited on
Commit
897f866
·
verified ·
1 Parent(s): 302741a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sử dụng image Python làm base
2
+ FROM python:3.9-slim
3
+
4
+ # Thiết lập thư mục làm việc
5
+ WORKDIR /app
6
+
7
+ # Copy các file cần thiết vào container
8
+ COPY . .
9
+
10
+ # Cài đặt các thư viện từ requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Khởi động ứng dụng
14
+ CMD ["python", "main.py"]