mickeyshi
commited on
Commit
•
d85fd6f
1
Parent(s):
7874ac0
added app back
Browse files- Dockerfile +1 -2
- Dockerfile.bak +0 -1
- main.py +1 -1
Dockerfile
CHANGED
@@ -8,5 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
12 |
-
|
|
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
Dockerfile.bak
CHANGED
@@ -10,4 +10,3 @@ COPY . .
|
|
10 |
|
11 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
12 |
|
13 |
-
export PYTHONPATH=$PWD
|
|
|
10 |
|
11 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
12 |
|
|
main.py
CHANGED
@@ -2,6 +2,6 @@ from fastapi import FastAPI
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
-
|
6 |
def read_root():
|
7 |
return {"Hello": "World!"}
|
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
+
@app.get("/")
|
6 |
def read_root():
|
7 |
return {"Hello": "World!"}
|