Files
Project-Monitor/docker/entry.sh
2025-10-22 22:23:06 +02:00

26 lines
551 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 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
alembic upgrade head
uvicorn backend:app --host 0.0.0.0 --port 8000 &
cd ..
# Start the cron daemon
cron -f