Compare commits
2 Commits
9ea4e093fc
...
424eb89c00
Author | SHA1 | Date | |
---|---|---|---|
424eb89c00 | |||
5d1c3f5ce5 |
@ -51,6 +51,7 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install --no-install-reco
|
||||
npm \
|
||||
openssh-client \
|
||||
passwd \
|
||||
patch \
|
||||
pipx \
|
||||
python3 \
|
||||
python3-pip \
|
||||
|
@ -96,6 +96,23 @@ until docker info >/dev/null 2>&1; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# ==== Install keybindings.json to enable terminal editor ====
|
||||
if ! stat "$HOME_DIR/.local/share/code-server/User/keybindings.json" > /dev/null 2>&1; then
|
||||
echo "[entrypoint] Creating default keybindings.json"
|
||||
mkdir -p "$HOME_DIR/.local/share/code-server/User"
|
||||
cat > "$HOME_DIR/.local/share/code-server/User/keybindings.json" <<EOF
|
||||
[
|
||||
{
|
||||
"key": "ctrl+alt+t",
|
||||
"command": "workbench.action.createTerminalEditor"
|
||||
}
|
||||
]
|
||||
EOF
|
||||
chown -R "$DOCKER_USER:$DOCKER_USER" "$HOME_DIR/.local/share/code-server/User"
|
||||
else
|
||||
echo "[entrypoint] keybindings.json already exists, skipping creation."
|
||||
fi
|
||||
|
||||
# ==== Install pre-commit ===
|
||||
if ! command -v pre-commit >/dev/null 2>&1; then
|
||||
echo "[entrypoint] Installing pre-commit..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user