Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
|
|
|
|
|
|
| 3 |
|
| 4 |
FROM python:3.11
|
| 5 |
|
|
@@ -8,8 +10,8 @@ WORKDIR /code
|
|
| 8 |
# COPY ./text-generation-webui_backup /code/text-generation-webui_backup
|
| 9 |
# COPY
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
|
|
|
| 13 |
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 14 |
#RUN python launchUI.py
|
| 15 |
|
|
|
|
| 1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
+
#refer:https://www.docker.com/blog/how-to-dockerize-your-python-applications/
|
| 4 |
+
|
| 5 |
|
| 6 |
FROM python:3.11
|
| 7 |
|
|
|
|
| 10 |
# COPY ./text-generation-webui_backup /code/text-generation-webui_backup
|
| 11 |
# COPY
|
| 12 |
|
|
|
|
| 13 |
|
| 14 |
+
RUN pip install pytorch torchvision
|
| 15 |
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
#RUN python launchUI.py
|
| 17 |
|