summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2024-07-16 12:47:42 +0200
committercyBerta <cyberta@riseup.net>2024-07-16 13:04:26 +0200
commit95267dc33bd0e5cc6f27728525572c4081a0ba1d (patch)
treedf83fe466070a696ccb21d3ce3c77ef9f3ea57e3
parent26d02d4a6d14347cfd437255b14a3fbe6212ae01 (diff)
add go environment to android-ndk docker image
-rw-r--r--docker/android-ndk/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/android-ndk/Dockerfile b/docker/android-ndk/Dockerfile
index 1b5f5de2..8b35f795 100644
--- a/docker/android-ndk/Dockerfile
+++ b/docker/android-ndk/Dockerfile
@@ -56,3 +56,15 @@ RUN sdkmanager --list
# Install Android cmake
RUN sdkmanager "cmake;3.10.2.4988404"
+
+# Install Go environment
+ENV GO_VERSION=go1.22.2.linux-amd64
+ENV EXPECTED_FP=5901c52b7a78002aeff14a21f93e0f064f74ce1360fce51c6ee68cd471216a17
+ENV GO_DOWNLOAD_URL=https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
+ENV GOROOT=/usr/local/go
+ENV PATH=$GOROOT/bin:$PATH
+
+RUN curl -L -o "go.tar.gz" "https://golang.org/dl/${GO_VERSION}.tar.gz"; \
+ echo "${EXPECTED_FP} go.tar.gz" | sha256sum -c - && \
+ tar -C /usr/local -xzf go.tar.gz && \
+ rm go.tar.gz \