Files
Project-Monitor/docker/entry.sh
2025-10-12 17:09:35 +02:00

26 lines
470 B
Bash

#!/bin/bash
source /app/backend/venv/bin/activate
# Navigate to the frontend directory, install dependencies, and start the Svelte app
cd frontend
npm install
npm run build
npm run dev -- --host 0.0.0.0 --port 8080 &
# Navigate back to the root directory
cd ..
# Setup exec venv
cd backend/exec_folder
python3 -m venv venv
cd ../..
# Start the backend using uvicorn
cd backend
uvicorn backend:app --host 0.0.0.0 --port 8000 &
cd ..
# Start the cron daemon
cron -f