#!/bin/bash # Copy the mounted SSH key so the dashboard user can read it if [ -f /app/ssh/id_ed25519 ]; then cp /app/ssh/id_ed25519 /tmp/id_ed25519 chown dashboard:dashboard /tmp/id_ed25519 chmod 600 /tmp/id_ed25519 export SSH_KEY_PATH=/tmp/id_ed25519 fi exec gosu dashboard gunicorn --bind 0.0.0.0:5000 --workers 2 --threads 4 app:app