Initial commit
This commit is contained in:
parent
f6a1d3dbda
commit
fea820123b
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.venv
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM python
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./requirements.txt /app/requirements.txt
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
COPY ./app /app
|
||||||
|
|
||||||
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
7
app/main.py
Normal file
7
app/main.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from fastapi import FastAPI
|
||||||
|
|
||||||
|
app = FastAPI()
|
||||||
|
|
||||||
|
@app.get('/')
|
||||||
|
def root():
|
||||||
|
return "Hello, World!"
|
11
requirements.txt
Normal file
11
requirements.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
asgiref==3.4.0
|
||||||
|
click==8.0.1
|
||||||
|
EbookLib==0.17.1
|
||||||
|
fastapi==0.65.2
|
||||||
|
h11==0.12.0
|
||||||
|
lxml==4.6.3
|
||||||
|
pydantic==1.8.2
|
||||||
|
six==1.16.0
|
||||||
|
starlette==0.14.2
|
||||||
|
typing-extensions==3.10.0.0
|
||||||
|
uvicorn==0.14.0
|
Loading…
x
Reference in New Issue
Block a user