add: dockerfile

This commit is contained in:
2025-07-07 19:43:04 +05:00
parent aeb613cda8
commit 23027432b1
2 changed files with 23 additions and 0 deletions

18
dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Создаем директорию для хранения БД
RUN mkdir -p /app/data
# Указываем порт, который будет слушать приложение
EXPOSE 3000
# Запускаем приложение
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]