Skip to content

Commit 081c392

Browse files
committed
feat: add golang
1 parent cb80250 commit 081c392

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
FROM myoung34/github-runner:ubuntu-jammy
22

3+
ARG GO_VERSION=1.26.2
4+
35
RUN apt-get update && \
46
apt-get install -y --no-install-recommends npm bc jq direnv && \
57
apt-get clean && \
68
rm -rf /var/lib/apt/lists/*
9+
10+
RUN ARCH=$(dpkg --print-architecture) && \
11+
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" | tar -C /usr/local -xz
12+
13+
ENV PATH="/usr/local/go/bin:${PATH}"

0 commit comments

Comments
 (0)