dodati aplikaciju, yaml

This commit is contained in:
nikolahrkac
2026-06-09 10:22:15 +02:00
parent d422e6d907
commit c570bcaa21
7 changed files with 105 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# 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"]