/
Rayven2035
/
Web
Обзор
Документация
Войти
/
Rayven2035
/
Web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
backend/Dockerfile
30 строк
636 B
Xusat
registration.html
13 апр 2026, 11:00
13 апр 2026, 11:00
1ca9e38
Код
Авторство
О чём код?
# Build stage FROM python:3.11-slim as builder WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Production stage FROM python:3.11-slim WORKDIR /app # Copy dependencies from builder COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages COPY --from=builder /usr/local/bin /usr/local/bin # Copy application COPY ./app ./app # Environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Expose port EXPOSE 8000 # Run the application CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]