attendantelectro commited on
Commit
793e7f6
·
verified ·
1 Parent(s): 2e8b3a4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # تعریف پایه Docker
2
+ FROM python:3.9-slim
3
+
4
+ # نصب وابستگی‌های سیستمی
5
+ RUN apt-get update && apt-get install -y ffmpeg
6
+
7
+ # نصب وابستگی‌های Python
8
+ COPY requirements.txt .
9
+ RUN pip install -r requirements.txt
10
+
11
+ # کپی کد برنامه به داخل کانتینر
12
+ COPY . /app
13
+ WORKDIR /app
14
+
15
+ # تعریف دستور اجرای برنامه
16
+ CMD ["streamlit", "run", "app.py"]