Files
Project-Monitor/docker/entry.sh
2025-10-12 15:33:28 +02:00

22 lines
381 B
Bash

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