Code-Server_IDE / entrypoint.sh
NitinBot002's picture
Create entrypoint.sh
e9fbe55 verified
raw
history blame contribute delete
384 Bytes
#!/bin/bash
# Default to blank if not provided
: "${PASSWORD:=changeme}"
echo "Starting code-server with secure password from ENV..."
mkdir -p ~/.config/code-server
cat > ~/.config/code-server/config.json <<EOF
{
"bind-addr": "0.0.0.0:7860",
"auth": "password",
"password": "${PASSWORD}",
"cert": false
}
EOF
exec code-server --host 0.0.0.0 --port 7860 /home/coder/project