Liuli commited on
Commit
feb3440
1 Parent(s): a2f32df

fastapi-test

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -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