Skip to content

Commit

Permalink
golang 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sasgas committed Jan 12, 2022
1 parent fdddf33 commit af4d369
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
7 changes: 7 additions & 0 deletions install_golang1176.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit af4d369

Please sign in to comment.