akdNIKY commited on
Commit
b816fcb
·
verified ·
1 Parent(s): 6454825

Upload 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
+ # نصب ffmpeg و پیش‌نیازها
4
+ RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
5
+
6
+ # تنظیم دایرکتوری کاری
7
+ WORKDIR /app
8
+
9
+ # کپی فایل‌های پروژه
10
+ COPY requirements.txt .
11
+ COPY app.py .
12
+
13
+ # نصب وابستگی‌ها
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # اجرای برنامه
17
+ CMD ["python", "app.py"]