← Files Runpod (Official)ARCHIVED FILE

skills/runpod/golden-paths/25-bake-vs-mount/template/start.sh

426 Bytes · Oct 4, 2026 · 12:18 UTC

↓ Download file

#!/usr/bin/env bash
# SSH setup (from-scratch pattern, see golden path 22) so we can exec in and inspect,
# then idle so the pod stays up.
set -e
mkdir -p ~/.ssh && chmod 700 ~/.ssh
if [ -n "$PUBLIC_KEY" ]; then
  echo "$PUBLIC_KEY" >> ~/.ssh/authorized_keys
  chmod 600 ~/.ssh/authorized_keys
fi
ssh-keygen -A
service ssh start
echo "pod up: baked model at /opt/baked-model, network volume at /workspace"
exec sleep infinity

SHA-256: 73ee52004aa12be0cc3b7048dbc83ed4e1d4024de5f44e7789e577c02117678a