Files
Project-Monitor/docker/entry.sh
Sami Abuzakuk 6460cab465
All checks were successful
Build Container / build (push) Successful in 5m15s
Fix env variables in cron
2025-10-12 19:06:03 +02:00

27 lines
556 B
Bash

#!/bin/bash
printenv | while read line; do echo "export $line"; done > /etc/container_environment
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