Sign inSign up

isfk/go-build

By isfk

•Updated 11 months ago

https://github.com/isfk/go-build

Image
Developer tools
0

2.2K

isfk/go-build repository overview

⁠1.21.1

# 基于 ubuntu-latest 镜像
FROM node:16-bullseye

# 更新软件源并安装必要的依赖
RUN apt-get update && apt-get install -y \
    curl \
    git \
    rsync

# 安装 go 1.21
RUN curl -LO https://go.dev/dl/go1.21.1.linux-arm64.tar.gz
RUN tar -C /usr/local -xzf go1.21.1.linux-arm64.tar.gz
RUN rm go1.21.1.linux-arm64.tar.gz

# 设置环境变量
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
ENV GOPROXY=https://proxy.golang.com.cn,direct

⁠1.20

# 基于 ubuntu-latest 镜像
FROM node:16-bullseye

# 更新软件源并安装必要的依赖
RUN apt-get update && apt-get install -y \
    curl \
    git \
    rsync

# 安装 go 1.20
RUN curl -LO https://go.dev/dl/go1.20.linux-arm64.tar.gz
RUN tar -C /usr/local -xzf go1.20.linux-arm64.tar.gz
RUN rm go1.20.linux-arm64.tar.gz

# 设置环境变量
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
ENV GOPROXY=https://proxy.golang.com.cn,direct

⁠1.18

# 基于 ubuntu-latest 镜像
FROM node:16-bullseye

# 更新软件源并安装必要的依赖
RUN apt-get update && apt-get install -y \
    curl \
    git \
    rsync

# 安装 go 1.18
RUN curl -LO https://go.dev/dl/go1.18.linux-arm64.tar.gz
RUN tar -C /usr/local -xzf go1.18.linux-arm64.tar.gz
RUN rm go1.18.linux-arm64.tar.gz

# 设置环境变量
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
ENV GOPROXY=https://proxy.golang.com.cn,direct

Tag summary

Content type

Image

Digest

sha256:5107963d4…

Size

420.2 MB

Last updated

11 months ago

docker pull isfk/go-build