diff --git a/Dockerfile b/Dockerfile index db231a9..870418e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ -FROM python:3.11-slim +FROM python:3.12-slim WORKDIR /app -COPY pyproject.toml . -RUN pip install --no-cache-dir -e . - COPY . . +RUN pip install --no-cache-dir . EXPOSE 8000 diff --git a/docker-compose.yml b/docker-compose.yml index 844e4a6..4c200de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: nike: build: . ports: - - "${NIKE_PORT}:8000" + - "${NIKE_PORT}:${NIKE_PORT}" env_file: - .env restart: unless-stopped diff --git a/nike/server.py b/nike/server.py index 70c775d..39abda9 100644 --- a/nike/server.py +++ b/nike/server.py @@ -819,11 +819,13 @@ async def api_run(body: _RunRequest): # ── Health endpoints ────────────────────────────────────── +@dashboard.get("/live") @dashboard.get("/live/") async def liveness(): return JSONResponse({"status": "ok"}) +@dashboard.get("/ready") @dashboard.get("/ready/") async def readiness(): db_check = db.check_connection()