mirror of
https://github.com/xiaoqidun/goenv.git
synced 2025-04-04 19:27:54 +08:00
This commit is contained in:
@ -4,6 +4,9 @@ FROM golang:1.21.1-bookworm
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
|
||||
# 使用中国软件源
|
||||
RUN sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
||||
|
||||
# 安装编译工具链
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
@ -11,9 +14,9 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 安装android ndk
|
||||
COPY android-ndk-r25c /usr/local/android-ndk-r25c
|
||||
COPY android-ndk-r26 /usr/local/android-ndk-r26
|
||||
|
||||
# 环境变量
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV PATH=$PATH:/usr/local/android-ndk-r26/toolchains/llvm/prebuilt/linux-x86_64/bin
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
Reference in New Issue
Block a user