runner-images/Dockerfile
张泊明518370910136 e544dedd6e
All checks were successful
push / build (push) Successful in 51s
feat: build golang-ubuntu-latest image
2024-10-10 23:59:10 -04:00

10 lines
359 B
Docker

FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
ARG GO_VERSION=1.23.1
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
RUN wget -q https://studygolang.com/dl/golang/go${GO_VERSION}.linux-amd64.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \
rm go${GO_VERSION}.linux-amd64.tar.gz