cryogenic22 commited on
Commit
e97c5c0
·
verified ·
1 Parent(s): 274299c

Update Dockerfile

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