attendantelectro commited on
Commit
969b0e2
·
verified ·
1 Parent(s): bc12951

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -6,15 +6,16 @@ ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
  WORKDIR /app
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
-
12
- COPY app.py .
13
 
14
- CMD ["python", "app.py"]
 
15
 
16
- #COPY --chown=user . /app
 
17
 
18
- #RUN chmod +x /app/entrypoint.sh
 
19
 
20
- #ENTRYPOINT ["/app/entrypoint.sh"]
 
6
 
7
  WORKDIR /app
8
 
9
+ # کپی فایل‌های لازم
10
+ COPY --chown=user requirements.txt prapt.txt ./
 
 
11
 
12
+ # نصب وابستگی‌ها
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
+ # کپی کد اصلی
16
+ COPY --chown=user app.py ./
17
 
18
+ # ایجاد پوشه برای داده‌های کاربر
19
+ RUN mkdir -p user_data
20
 
21
+ CMD ["python", "app.py"]