diff --git a/Dockerfile b/Dockerfile index a8f7fa4..1d32b91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,6 +93,9 @@ RUN /script/install_ninja1102.sh ADD install_ffmpeg441.el6.sh /script/ RUN /script/install_ffmpeg441.el6.sh +ADD install_golang1176.sh /script/ +RUN /script/install_golang1176.sh + # set timezone RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime @@ -104,6 +107,7 @@ ADD .bashrc /root/.bashrc # Set environment variables ENV HOME /root +ENV PATH="${PATH}:${HOME}/go/bin:/usr/local/go/bin" # Define default command CMD ["scl", "enable", "devtoolset-9", "zsh"] diff --git a/install_golang1176.sh b/install_golang1176.sh new file mode 100755 index 0000000..fffbbe5 --- /dev/null +++ b/install_golang1176.sh @@ -0,0 +1,7 @@ +#!/bin/bash -e +set -x #echo on +cd ~ +wget -nv https://go.dev/dl/go1.17.6.linux-amd64.tar.gz +tar xvf go1.17.6.linux-amd64.tar.gz +tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz +rm -rf go1.17.6.linux-amd64.tar.gz