Ming li
commited on
Commit
•
1e22bae
1
Parent(s):
c82cc51
changed custom docker image
Browse files- Dockerfile +2 -12
- Dockerfile.backup +21 -0
Dockerfile
CHANGED
@@ -1,21 +1,11 @@
|
|
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 |
|
8 |
WORKDIR /code
|
9 |
|
10 |
-
# COPY ./text-generation-webui_backup /code/text-generation-webui_backup
|
11 |
-
# COPY
|
12 |
-
|
13 |
-
|
14 |
-
RUN pip install torchvision torch
|
15 |
-
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
-
#RUN python launchUI.py
|
17 |
|
18 |
COPY . .
|
19 |
|
20 |
-
|
21 |
-
CMD ["python", "./launchUI.py"]
|
|
|
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 mingli512/ming_chatdev:latest
|
|
|
5 |
|
6 |
WORKDIR /code
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
+
CMD ["bash"]
|
|
Dockerfile.backup
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
8 |
+
WORKDIR /code
|
9 |
+
|
10 |
+
# COPY ./text-generation-webui_backup /code/text-generation-webui_backup
|
11 |
+
# COPY
|
12 |
+
|
13 |
+
|
14 |
+
RUN pip install torchvision torch
|
15 |
+
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
+
#RUN python launchUI.py
|
17 |
+
|
18 |
+
COPY . .
|
19 |
+
|
20 |
+
#CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
21 |
+
CMD ["python", "./launchUI.py"]
|