zdou0830 commited on
Commit
4a4402a
1 Parent(s): ac46865

Dockerfile

Browse files
Files changed (3) hide show
  1. Dockerfile +8 -0
  2. main.py +7 -0
  3. requirements.txt +16 -0
Dockerfile CHANGED
@@ -1,5 +1,13 @@
1
  FROM pengchuanzhang/pytorch:ubuntu20.04_torch1.9-cuda11.3-nccl2.9.9
2
 
 
 
 
 
 
 
 
 
3
  COPY . .
4
 
5
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM pengchuanzhang/pytorch:ubuntu20.04_torch1.9-cuda11.3-nccl2.9.9
2
 
3
+
4
+ WORKDIR /code
5
+
6
+ COPY ./requirements.txt /code/requirements.txt
7
+
8
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+
10
+
11
  COPY . .
12
 
13
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+
6
+ def read_root():
7
+ return {"Hello": "World!"}
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ einops
2
+ shapely
3
+ timm
4
+ yacs
5
+ tensorboardX
6
+ ftfy
7
+ prettytable
8
+ pymongo
9
+ sentence_transformers
10
+ fastcluster
11
+ openai
12
+ transformers==4.11
13
+ wandb
14
+ protobuf==3.20.1
15
+ fastapi==0.74.*
16
+ requests==2.27.*