deploy
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
6
deploy-back.sh
Executable 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
7
deploy-front.sh
Executable 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
9
docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
sport-platform:
|
||||
image: sport-platform:latest
|
||||
container_name: sport-platform
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "8099:8099" # Вернули проброс порта
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user