camphong24032002 commited on
Commit
31ef538
·
1 Parent(s): 8ede052
Files changed (3) hide show
  1. Dockerfile +12 -0
  2. main.py +1 -0
  3. requirements.txt +16 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.9
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
+ COPY . .
11
+
12
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py ADDED
@@ -0,0 +1 @@
 
 
1
+ print("Hello world")
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ pydantic==1.10.13
4
+ pymongo==4.6.1
5
+ requests
6
+ google-api-python-client
7
+ google-auth
8
+ google-auth-oauthlib
9
+ google-auth-httplib2
10
+ gcsa
11
+ pandas
12
+ numpy
13
+ asyncio
14
+ scikit-learn
15
+ vnstock
16
+ matplotlib