moraxgiga commited on
Commit
b945847
·
verified ·
1 Parent(s): 6666011

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -11
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
-
2
- FROM python:3.11
3
-
4
- WORKDIR /app
5
-
6
- COPY ./requirements.txt .
7
-
8
- RUN pip install --no-cache-dir -r requirements.txt
9
-
10
- COPY . .
11
-
 
 
12
  CMD ["python", "server.py"]
 
1
+
2
+ FROM python:3.11
3
+
4
+ WORKDIR /app
5
+ RUN mkdir -p /app/hf_cache
6
+ RUN chmod -R 777 /app/hf_cache
7
+ ENV HF_HOME=/app/hf_cache
8
+ COPY ./requirements.txt .
9
+
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ COPY . .
13
+ EXPOSE 7860
14
  CMD ["python", "server.py"]