Spaces:
Sleeping
Sleeping
fastapi-test
Browse files- Dockerfile +2 -2
- requirements.txt +2 -1
Dockerfile
CHANGED
@@ -2,13 +2,13 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
6 |
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
|
9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
|
11 |
-
|
12 |
|
13 |
COPY . .
|
14 |
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
##RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
6 |
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
|
9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
|
11 |
+
EXPOSE 7860
|
12 |
|
13 |
COPY . .
|
14 |
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
fastapi
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn
|