WIP fix attempt
This commit is contained in:
parent
ddd06af9b2
commit
5c74ad8fc5
43
Dockerfile
43
Dockerfile
|
@ -1,5 +1,6 @@
|
|||
# Ubuntu 20.04 for that slightly older and more compat glibc
|
||||
FROM eclipse-temurin:8-jdk-focal
|
||||
FROM debian:bullseye
|
||||
# eclipse-temurin:8-jdk-focal
|
||||
|
||||
|
||||
# compile tools we need including for cross compiling to windows and arm8
|
||||
|
@ -12,15 +13,49 @@ RUN set -eux; \
|
|||
openssl \
|
||||
libssl-dev \
|
||||
git \
|
||||
wget \
|
||||
wget curl \
|
||||
unzip \
|
||||
fontconfig \
|
||||
netcat git wget libc6-dev make gcc g++ pkg-config g\+\+-mingw-w64 \
|
||||
gcc-aarch64-linux-gnu \
|
||||
jq openssh-client ca-certificates curl \
|
||||
gcc-aarch64-linux-gnu libc6-dev \
|
||||
jq openssh-client ca-certificates p11-kit tzdata locales \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
|
||||
# https://github.com/adoptium/containers/blob/main/8/jdk/ubuntu/focal/Dockerfile
|
||||
|
||||
ENV JAVA_HOME /opt/java/openjdk
|
||||
ENV PATH $JAVA_HOME/bin:$PATH
|
||||
# Default to UTF-8 file.encoding
|
||||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
|
||||
|
||||
ENV JAVA_VERSION jdk8u402-b06
|
||||
|
||||
RUN set -eux; \
|
||||
ARCH="$(dpkg --print-architecture)"; \
|
||||
ESUM='fcfd08abe39f18e719e391f2fc37b8ac1053075426d10efac4cbf8969e7aa55e'; \
|
||||
BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u402-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u402b06.tar.gz'; \
|
||||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \
|
||||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
|
||||
mkdir -p "$JAVA_HOME"; \
|
||||
tar --extract \
|
||||
--file /tmp/openjdk.tar.gz \
|
||||
--directory "$JAVA_HOME" \
|
||||
--strip-components 1 \
|
||||
--no-same-owner \
|
||||
; \
|
||||
rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip; \
|
||||
# https://github.com/docker-library/openjdk/issues/331#issuecomment-498834472
|
||||
find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; \
|
||||
ldconfig;
|
||||
|
||||
RUN set -eux; \
|
||||
echo "Verifying install ..."; \
|
||||
echo "javac -version"; javac -version; \
|
||||
echo "java -version"; java -version; \
|
||||
echo "Complete."
|
||||
|
||||
# Android section of this Dockerfile from https://medium.com/@elye.project/intro-to-docker-building-android-app-cb7fb1b97602
|
||||
|
||||
ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" \
|
||||
|
|
Loading…
Reference in New Issue