Skip to content

Commit

Permalink
docker: update golang
Browse files Browse the repository at this point in the history
  • Loading branch information
atotto committed Jan 4, 2024
1 parent 45cdb65 commit c0d16cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ RUN apt-get update -qq && apt-get install -y --no-install-recommends apt-utils w
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
apt-get update && apt-get install -y --no-install-recommends \
git openssh-client google-chrome-stable libnss3 libx11-6 && \
git openssh-client google-chrome-stable libnss3 libx11-6 jq && \
rm -rf /var/lib/apt/lists/*

# setup golang
RUN curl -sL "https://dl.google.com/go/$(curl -s https://go.dev/VERSION?m=text).linux-amd64.tar.gz" | tar xz -C /usr/local && ln -sf /usr/local/go/bin/go /usr/local/bin/go && ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt
RUN curl -sL "https://dl.google.com/go/$(curl -s https://go.dev/dl/?mode=json | jq -r '.[0].version').linux-amd64.tar.gz" | tar xz -C /usr/local && ln -sf /usr/local/go/bin/go /usr/local/bin/go && ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt

0 comments on commit c0d16cf

Please sign in to comment.