diff --git a/Dockerfile b/Dockerfile index 3f98e6f..21e7cd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ -# 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"] \ No newline at end of file