add dockerfile

This commit is contained in:
GalicIvan
2026-06-25 02:35:39 +02:00
parent 68be13b2e6
commit 54aa2b0d8a

View File

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