Add initial project structure with Dockerfile, Kubernetes manifests, and FastAPI application

This commit is contained in:
2026-06-09 10:14:55 +02:00
commit a2b21cc9d3
8 changed files with 121 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# TODO: napiši Dockerfile
# Base image: python:3.12-slim
# Working dir: /app
# Kopiraj requirements.txt, pip install, zatim kopiraj app/
# EXPOSE 8000
# CMD uvicorn app.main:app --host 0.0.0.0 --port 8000
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"]