MHD011 commited on
Commit
860265a
·
verified ·
1 Parent(s): 6039d0c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -17
Dockerfile CHANGED
@@ -1,18 +1,14 @@
1
-
2
- ## ملف `Dockerfile` (اختياري)
3
-
4
- ```dockerfile
5
- FROM python:3.9-slim
6
-
7
- WORKDIR /app
8
-
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
-
12
- RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
13
- ENV TRANSFORMERS_CACHE=/app/model_cache
14
- ENV HF_HOME=/app/model_cache
15
-
16
- COPY . .
17
-
18
  CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
9
+ ENV TRANSFORMERS_CACHE=/app/model_cache
10
+ ENV HF_HOME=/app/model_cache
11
+
12
+ COPY . .
13
+
 
 
 
 
14
  CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]