Sada8888 commited on
Commit
b6fe3fc
·
verified ·
1 Parent(s): 49a3e6b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+ WORKDIR /app
3
+
4
+ COPY requirements.txt .
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+
7
+ # ساخت پوشه برای آپلود عکس‌ها و دادن سطح دسترسی
8
+ RUN mkdir -p static/images && chmod -R 777 static
9
+
10
+ COPY . .
11
+
12
+ EXPOSE 7860
13
+ CMD ["python", "app.py"]