1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 12:21:15 +00:00

Switch openjdk base image to maintained variant

The existing one has a deprecation notice, pointing at this as it's
successor.
This commit is contained in:
Simon Frei 2023-06-18 16:29:22 +02:00
parent a13c049180
commit 4ef201b0a8
No known key found for this signature in database
GPG key ID: 7C31D23ECB1006F3

View file

@ -1,4 +1,4 @@
FROM openjdk:11 FROM eclipse-temurin:11-jdk-jammy
ENV GO_VERSION 1.19.10 ENV GO_VERSION 1.19.10
@ -7,8 +7,10 @@ ENV GO_VERSION 1.19.10
ARG ANDROID_SDK_FILENAME=commandlinetools-linux-9123335_latest.zip ARG ANDROID_SDK_FILENAME=commandlinetools-linux-9123335_latest.zip
WORKDIR /opt WORKDIR /opt
RUN apt-get update && apt-get install --no-install-recommends -y gcc unzip git python3
# Install Go # Install Go
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \ RUN wget -nv https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -zxf go${GO_VERSION}.linux-amd64.tar.gz && \ tar -zxf go${GO_VERSION}.linux-amd64.tar.gz && \
rm go${GO_VERSION}.linux-amd64.tar.gz rm go${GO_VERSION}.linux-amd64.tar.gz
ENV GOROOT /opt/go ENV GOROOT /opt/go