first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM python:3.9
|
||||
|
||||
WORKDIR ./WrenchBoard/src/wrenchai-api
|
||||
|
||||
COPY ./WrenchBoard/src/requirements.txt .
|
||||
|
||||
COPY ./WrenchBoard/src ./src
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
|
||||
CMD ["python", "./src/wrench.py"]
|
||||
@@ -0,0 +1,2 @@
|
||||
uvicorn
|
||||
fastapi
|
||||
@@ -0,0 +1,12 @@
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/")
|
||||
def central_function():
|
||||
return {"Neural":"Nine"}
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(app, port=3035,host="0.0.0.0")
|
||||
Reference in New Issue
Block a user