ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / |
CMD ["/bin/sh"] |
ENV JAVA_HOME=/opt/java/openjdk |
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
RUN /bin/sh -c set -eux; apk add --no-cache fontconfig ttf-dejavu ca-certificates p11-kit-trust musl-locales musl-locales-lang binutils tzdata ; rm -rf /var/cache/apk/* # buildkit |
ENV JAVA_VERSION=jdk-17.0.11+9 |
RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in amd64|x86_64) ESUM='839326b5b4b3e4ac2edc3b685c8ab550f9b6d267eddf966323c801cb21e3e018'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.11_9.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget -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; # buildkit |
RUN /bin/sh -c set -eux; echo "Verifying install ..."; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; echo "javac --version"; javac --version; echo "java --version"; java --version; echo "Complete." # buildkit |
COPY entrypoint.sh /__cacert_entrypoint.sh # buildkit |
ENTRYPOINT ["/__cacert_entrypoint.sh"] |
CMD ["jshell"] |
CMD ["gradle"] |
ENV GRADLE_HOME=/opt/gradle |
/bin/sh -c set -o errexit -o nounset && echo "Adding gradle user and group" && addgroup --system --gid 1000 gradle && adduser --system --ingroup gradle --uid 1000 --shell /bin/ash gradle && mkdir /home/gradle/.gradle && chown -R gradle:gradle /home/gradle && chmod -R o+rwx /home/gradle && echo "Symlinking root Gradle cache to gradle Gradle cache" && ln -s /home/gradle/.gradle /root/.gradle |
VOLUME [/home/gradle/.gradle] |
WORKDIR /home/gradle |
/bin/sh -c set -o errexit -o nounset && echo "Installing VCSes" && apk add --no-cache git git-lfs mercurial subversion && echo "Testing VCSes" && which git && which git-lfs && which hg && which svn |
ENV GRADLE_VERSION=8.7 |
ARG GRADLE_DOWNLOAD_SHA256=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d |
|1 GRADLE_DOWNLOAD_SHA256=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d /bin/sh -c set -o errexit -o nounset && echo "Downloading Gradle" && wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" && echo "Checking Gradle download hash" && echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum -c - && echo "Installing Gradle" && unzip gradle.zip && rm gradle.zip && mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" && ln -s "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle |
USER gradle |
|1 GRADLE_DOWNLOAD_SHA256=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d /bin/sh -c set -o errexit -o nounset && echo "Testing Gradle installation" && gradle --version |
USER root |
WORKDIR /telraam |
COPY dir:7f60b4e86d7d15a4c11570f3a0360765d19d8273a5d42c32ce6dc3e91da1686b in . |
/bin/sh -c ./gradlew build |
CMD ["./gradlew", "runDev"] |