Spaces:
Sleeping
Sleeping
File size: 1,240 Bytes
1970509 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/sh
set -e
APP_PASS="${APP_PASSWORD:-dev2026}"
export PASSWORD="$APP_PASS"
echo 'export PATH="/opt/hermes/.venv/bin:$PATH"' > /etc/profile.d/hermes.sh
echo 'export PATH="/opt/hermes/.venv/bin:$PATH"' >> /root/.bashrc
chmod +x /etc/profile.d/hermes.sh
ln -sf /opt/hermes/.venv/bin/hermes /usr/local/bin/hermes 2>/dev/null || true
ln -sf /opt/hermes/.venv/bin/python /usr/local/bin/hermes-python 2>/dev/null || true
cat >> /root/.bashrc << 'BASHEOF'
alias oc='opencode'
alias ll='ls -la'
alias la='ls -la'
alias ..='cd ..'
alias ...='cd ../..'
alias gs='git status'
alias gd='git diff'
alias gl='git log --oneline -10'
alias gita='git add -A'
alias gitc='git commit -m'
alias gitp='git push'
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
BASHEOF
if [ -f /data/.env ]; then
echo '[entrypoint] Loading /data/.env'
set -a
. /data/.env
set +a
fi
echo '[entrypoint] Generating config...'
python3 /app/src/start.py || true
echo '[entrypoint] Starting code-server on port 7860...'
exec code-server --bind-addr 0.0.0.0:7860 --auth password \
--disable-telemetry --disable-update-check \
--user-data-dir /data/.code-server \
--extensions-dir /data/.code-server/extensions \
/data
|