Initial commit

This commit is contained in:
2026-03-31 09:44:20 +02:00
commit cedb45d06b
3 changed files with 19 additions and 0 deletions

10
app/main.py Normal file
View File

@@ -0,0 +1,10 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijetu!"}
@app.get("/health")
def health():
return {"status": "ok"}

7
dockerfile Normal file
View File

@@ -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"]

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
fastapi == 0.111.0
uvicorn == 0.29.0