Commit ·
0d55c99
1
Parent(s): a1f1716
Upload Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -11,13 +11,9 @@ ENV HF_HOME=/code/cache
|
|
| 11 |
|
| 12 |
COPY ./requirements.txt /code/requirements.txt
|
| 13 |
|
| 14 |
-
RUN pip3 install
|
| 15 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
|
| 17 |
COPY ./main.py /code/app/main.py
|
| 18 |
|
| 19 |
-
COPY ./data/kilt_wiki_prepared/ /code/data/kilt_wiki_prepared
|
| 20 |
-
|
| 21 |
-
COPY ./data/kilt_wikipedia.faiss /code/data/kilt_wikipedia.faiss
|
| 22 |
-
|
| 23 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
|
|
|
|
| 11 |
|
| 12 |
COPY ./requirements.txt /code/requirements.txt
|
| 13 |
|
| 14 |
+
RUN pip3 install torch==1.10.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
|
| 15 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
|
| 17 |
COPY ./main.py /code/app/main.py
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
|