009 add docker compose

This commit is contained in:
Раис Юсупалиев
2026-03-08 15:18:46 +03:00
parent 34d7a4c336
commit df2f132c05
7 changed files with 178 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.14-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN pip install --no-cache-dir poetry
COPY pyproject.toml poetry.lock ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-root
COPY app ./app
COPY config.yaml ./config.yaml
CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]