This commit is contained in:
xds
2026-03-16 12:20:33 +03:00
parent 9d886076d6
commit d99f8310f7
4 changed files with 36 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.13-slim
# Рабочая директория внутри контейнера
WORKDIR /app
# Копируем зависимости (если есть requirements.txt)
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Копируем код
COPY . .
# Запуск приложения (замени app.py на свой файл)
CMD ["uvicorn", "aiws:app", "--host", "0.0.0.0", "--port", "8090"]

6
deploy-back.sh Executable file
View File

@@ -0,0 +1,6 @@
ssh root@31.59.58.220 "
cd /root/sport &&
git pull &&
docker compose up -d --build
"

7
deploy-front.sh Executable file
View File

@@ -0,0 +1,7 @@
ssh root@31.59.58.220 "
cd /root/sport &&
git pull &&
npm run build &&
cp -r dist/* /var/www/sport.luminic.space/
"

9
docker-compose.yml Normal file
View File

@@ -0,0 +1,9 @@
services:
sport-platform:
image: sport-platform:latest
container_name: sport-platform
build:
context: .
ports:
- "8099:8099" # Вернули проброс порта
restart: unless-stopped