diff --git a/.drone.yml b/.drone.yml index c02f051..ad566dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,12 @@ type: docker name: default steps: + - name: build + pull: if-not-exists + image: golang + commands: + - wget -q -T 180 https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip + - unzip -q android-ndk-r21b-linux-x86_64.zip - name: docker pull: if-not-exists image: plugins/docker diff --git a/Dockerfile b/Dockerfile index 63cd902..45197eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ FROM golang:buster # 作者信息 LABEL MAINTAINER="xiaoqidun@gmail.com" -# 安装工具 -RUN apt-get update \ - && apt-get install -y \ - unzip +# 安装android ndk +COPY android-ndk-r21b /usr/local/android-ndk-r21b + +# 环境变量 +ENV PATH=$PATH:/usr/local/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin \ No newline at end of file