luannltce190980 commited on
Commit
1280a89
·
verified ·
1 Parent(s): 1843fde

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Cài đặt thư viện hệ thống cần thiết cho xử lý âm thanh
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ WORKDIR /code
9
+
10
+ COPY ./requirements.txt /code/requirements.txt
11
+
12
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
+
14
+ COPY . .
15
+
16
+ # Chạy FastAPI trên cổng 7860 (cổng mặc định của Hugging Face)
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]