From af4d369c75115944c4260ff4853ff3e995e6adc6 Mon Sep 17 00:00:00 2001 From: sasgas Date: Wed, 12 Jan 2022 16:16:42 +0900 Subject: [PATCH] =?UTF-8?q?golang=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++++ install_golang1176.sh | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100755 install_golang1176.sh 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