aboutsummaryrefslogtreecommitdiff
path: root/docker/code-server/install-code-server.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-07 21:12:03 +0800
committercrupest <crupest@outlook.com>2023-07-07 21:12:03 +0800
commitd61b3476962fd1e27911fc73550e6ec52debd316 (patch)
tree151e8fa551a36211510ce6d5187816feb2d9e80d /docker/code-server/install-code-server.bash
parente2e2f73fb9197ab739ce316f91c22b28393b65c3 (diff)
downloadcrupest-d61b3476962fd1e27911fc73550e6ec52debd316.tar.gz
crupest-d61b3476962fd1e27911fc73550e6ec52debd316.tar.bz2
crupest-d61b3476962fd1e27911fc73550e6ec52debd316.zip
Code server no longer install softwares.
Install them yourself!
Diffstat (limited to 'docker/code-server/install-code-server.bash')
-rwxr-xr-xdocker/code-server/install-code-server.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/code-server/install-code-server.bash b/docker/code-server/install-code-server.bash
index 57eea80..b2c15ab 100755
--- a/docker/code-server/install-code-server.bash
+++ b/docker/code-server/install-code-server.bash
@@ -4,7 +4,7 @@ set -e
apt-get update
apt-get install -y locales curl
-rm -rf /var/lib/apt/lists/*
+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
@@ -20,3 +20,5 @@ dpkg -i "code-server_${VERSION}_amd64.deb"
rm "code-server_${VERSION}_amd64.deb"
echo "Code-server version: $(code-server --version)."
+
+rm -rf /var/lib/apt/lists/*