ashish-001 commited on
Commit
df50825
·
verified ·
1 Parent(s): 65b0ce5

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -6,6 +6,11 @@ COPY . /app
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt uvicorn
8
 
 
 
 
 
 
9
  EXPOSE 7860
10
 
11
  CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]
 
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt uvicorn
8
 
9
+ ENV HF_HOME=/home/user/cache
10
+ ENV TORCH_HOME=/home/user/cache
11
+ RUN mkdir -p /home/user/cache && chmod -R 777 /home/user/cache
12
+ COPY . .
13
+
14
  EXPOSE 7860
15
 
16
  CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]