Spaces:
Build error
Build error
randomshit11
commited on
Update Dockerfile
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
@@ -1,6 +1,3 @@
|
|
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.9
|
5 |
|
6 |
WORKDIR /code
|
@@ -9,10 +6,8 @@ WORKDIR /code
|
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
11 |
# Install any needed dependencies
|
12 |
-
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
-
|
14 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
15 |
|
16 |
COPY . .
|
17 |
|
18 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
WORKDIR /code
|
|
|
6 |
COPY ./requirements.txt /code/requirements.txt
|
7 |
|
8 |
# Install any needed dependencies
|
|
|
|
|
9 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
10 |
|
11 |
COPY . .
|
12 |
|
13 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|