cryogenic22 commited on
Commit
604238b
·
verified ·
1 Parent(s): 48b92d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -1,5 +1,13 @@
1
  FROM python:3.9-slim
2
  WORKDIR /code
 
 
 
 
 
 
 
3
  COPY app.py requirements.txt ./
4
  RUN pip install --no-cache-dir -r requirements.txt
 
5
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9-slim
2
  WORKDIR /code
3
+
4
+ # Create cache with proper permissions
5
+ RUN mkdir -p /.cache && \
6
+ chmod 777 /.cache && \
7
+ mkdir -p /root/.cache/torch/sentence_transformers && \
8
+ chmod -R 777 /root/.cache
9
+
10
  COPY app.py requirements.txt ./
11
  RUN pip install --no-cache-dir -r requirements.txt
12
+
13
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]