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")
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
wrenchboard-ai-micro:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./WrenchBoard/src/Dockerfile
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./:/wrenchai-api
|
||||||
|
ports:
|
||||||
|
- 3035:3035
|
||||||
|
environment:
|
||||||
|
- PORT=3035
|
||||||
|
volumes:
|
||||||
|
src:
|
||||||
Reference in New Issue
Block a user