mikeee commited on
Commit
d532d56
1 Parent(s): e3cecc1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM python:3.10
2
- ENV TRANSFORMERS_CACHE .
 
3
 
4
  WORKDIR /code
5
 
@@ -10,4 +11,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
  COPY . .
11
 
12
  # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
13
- CMD ["infinity_emb", "--model-name-or-path", "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", "--port", "7860"]
 
1
  FROM python:3.10
2
+ ENV TRANSFORMERS_CACHE=./cache/ \
3
+ PIP_ROOT_USER_ACTION=ignore
4
 
5
  WORKDIR /code
6
 
 
11
  COPY . .
12
 
13
  # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
14
+ CMD "TRANSFORMERS_CACHE=./cache/", "infinity_emb", "--model-name-or-path", "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", "--port", "7860"]