mickeyshi commited on
Commit ·
9c926c7
1
Parent(s): 3fcef59
demo changes
Browse files- Dockerfile.bak +0 -1
- main.py +7 -0
Dockerfile.bak
CHANGED
|
@@ -5,7 +5,6 @@ WORKDIR /code
|
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
-
RUN pip install fastapi uvicorn
|
| 9 |
|
| 10 |
COPY . .
|
| 11 |
|
|
|
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
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!"}
|