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 808a5c6 commit 1b8e811
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 @@ -79,6 +79,9 @@ RUN /script/install_ninja1102.sh
ADD install_ffmpeg441.sh /script/
RUN /script/install_ffmpeg441.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 @@ -90,6 +93,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 ["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 1b8e811

Please sign in to comment.