Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -2,16 +2,15 @@ FROM python:3.10
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
-
RUN apt update
|
| 7 |
|
| 8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 9 |
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
|
| 13 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
|
| 14 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
|
| 15 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/requirements.txt
|
| 16 |
-
|
| 17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
|
| 6 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
|
| 7 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
|
| 8 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/requirements.txt
|
| 9 |
+
|
| 10 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|