Skip to content

Commit

Permalink
fix ndk
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed May 31, 2024
1 parent 314cc69 commit 4b3ac15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM golang:1.22.1 as build
ADD . /go-src
COPY . /go-src
RUN cd /go-src && make build

FROM golang:1.22.1 as build-termux
ADD . /go-src
COPY . /go-src
RUN cd /go-src && make build-termux

FROM golang:1.22.1
COPY --from=build /usr/local/go/ /usr/local/go
COPY --from=build-termux /usr/local/go/ /usr/local/go-termux/

RUN apt-get update && apt-get install -y sdktools
ENV NDK_VERSION r26.d
RUN sdktools --install 'ndk;${NDK_VERSION}'
ADD go-termux.sh /usr/local/bin/go-termux
RUN apt-get update && apt-get install -y sdkmanager
ENV NDK_VERSION r26d
RUN sdkmanager --install "ndk;${NDK_VERSION}"
COPY go-termux.sh /usr/local/bin/go-termux

0 comments on commit 4b3ac15

Please sign in to comment.