add user? new page? new web
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
FROM nginx:alpine
|
||||
COPY . /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Устанавливаем flet (uvicorn уже входит в зависимости flet)
|
||||
RUN pip install --no-cache-dir flet "uvicorn[standard]" httpx
|
||||
|
||||
# Копируем исходники веб-приложения
|
||||
COPY . .
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# Запускаем Flet как ASGI-приложение через uvicorn
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
Reference in New Issue
Block a user