Install gcc at the end of code-server-golang init script

This commit is contained in:
caiych
2021-03-16 21:52:35 +08:00
parent fa52178684
commit d95b81523f
+3
View File
@@ -17,6 +17,9 @@ if [ -f "/golang/golang_${ARCH}.tar.gz" ]; then
echo "Installing golang"
tar xzf "/golang/golang_${ARCH}.tar.gz" -C /usr/local
rm -rf /golang
echo "Installing gcc, to make CGO work"
apt-get update && apt-get install -y gcc
else
echo "Golang already installed, skipping"
fi