From 18ba64eaf86cfba5343f96903075bb03812c884f Mon Sep 17 00:00:00 2001 From: grillkol Date: Mon, 27 Apr 2026 16:33:52 +0200 Subject: [PATCH] initial --- Dockerfile | 7 +++++++ api/app/main.py | 7 +++++++ api/requirements.txt | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 api/app/main.py create mode 100644 api/requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..edd22df --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.12-slim +WORKDIR /app +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt +COPY app/ ./app/ +EXPOSE 8000 +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file diff --git a/api/app/main.py b/api/app/main.py new file mode 100644 index 0000000..9e63ea3 --- /dev/null +++ b/api/app/main.py @@ -0,0 +1,7 @@ +from fastapi import FastAPI + +app = FastAPI(title="Signal - Roblox Telemetry") + +@app.get("/health") +async def health(): + return {"status": "ok"} \ No newline at end of file diff --git a/api/requirements.txt b/api/requirements.txt new file mode 100644 index 0000000..686ec53 --- /dev/null +++ b/api/requirements.txt @@ -0,0 +1,4 @@ +fastapi==0.115.0 +uvicorn==0.30.1 +influxdb-client==1.44.0 +python-dotenv==1.0.1 \ No newline at end of file