dressed_for_succes_store/backend/Dockerfile
ilya_zahvatkin 41c1385546 for deploy
2025-05-01 18:29:38 +07:00

26 lines
810 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Используем официальный образ с Uvicorn+Gunicorn, оптимизированный для FastAPI
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app
EXPOSE 8000
# Точка входа: стандартный CMD из базового образа запустит Gunicorn+Uvicorn
# FROM python:3.10-slim
# WORKDIR /app
# COPY requirements.txt .
# RUN pip install --no-cache-dir -r requirements.txt
# # Для разработки код монтируется через volumes, а в продакшн-билде можно добавить COPY . /app
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] # hot-reload