mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-09-08 06:08:03 +08:00
This commit is contained in:
parent
8ccb320a78
commit
318f5681f4
@ -11,9 +11,9 @@ steps:
|
||||
commands:
|
||||
- sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
||||
- apt-get update && apt-get install -y wget unzip && rm -rf /var/lib/apt/lists/*
|
||||
- wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r26c-linux.zip
|
||||
- unzip -q android-ndk-r26c-linux.zip
|
||||
- rm -f android-ndk-r26c-linux.zip
|
||||
- wget -q -T 180 -4 https://dl.google.com/android/repository/android-ndk-r26d-linux.zip
|
||||
- unzip -q android-ndk-r26d-linux.zip
|
||||
- rm -f android-ndk-r26d-linux.zip
|
||||
- name: docker-cn
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 基础镜像
|
||||
FROM golang:1.22.2-bookworm
|
||||
FROM golang:1.22.3-bookworm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
@ -14,9 +14,9 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 安装android ndk
|
||||
COPY android-ndk-r26c /usr/local/android-ndk-r26c
|
||||
COPY android-ndk-r26d /usr/local/android-ndk-r26d
|
||||
|
||||
# 环境变量
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r26c/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r26d/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 基础镜像
|
||||
FROM golang:1.22.2-bookworm
|
||||
FROM golang:1.22.3-bookworm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
@ -11,9 +11,9 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 安装android ndk
|
||||
COPY android-ndk-r26c /usr/local/android-ndk-r26c
|
||||
COPY android-ndk-r26d /usr/local/android-ndk-r26d
|
||||
|
||||
# 环境变量
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r26c/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r26d/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.aite.xyz,direct
|
||||
|
Loading…
Reference in New Issue
Block a user