Files
lunarfront-app/entrypoint-devpod.sh
Ryan Moon b40bab0391
Some checks failed
Build & Release / build (push) Successful in 22s
Build Devpod / build (push) Failing after 5s
feat: add devpod image — code-server, Claude Code, bun, kubectl
2026-04-04 06:56:56 -05:00

22 lines
421 B
Bash

#!/bin/bash
set -e
# Generate SSH host keys if not present
ssh-keygen -A
# Write authorized keys from env if provided
if [ -n "$SSH_AUTHORIZED_KEYS" ]; then
echo "$SSH_AUTHORIZED_KEYS" > /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
fi
# Start SSH daemon
/usr/sbin/sshd
# Start code-server
exec code-server \
--bind-addr 0.0.0.0:8080 \
--auth password \
--disable-telemetry \
/workspace