Skip to content

Instantly share code, notes, and snippets.

View Manikandan-K's full-sized avatar

Manikandan Manikandan-K

  • ThoughtWorks
  • Chennai
View GitHub Profile
@Manikandan-K
Manikandan-K / Dockerfile
Created March 30, 2021 09:27
alpine gradle chrome
FROM alpine:3.13
CMD ["/bin/sh"]
ENV LANG=C.UTF-8
RUN { echo '#!/bin/sh'; echo 'set -e'; echo; echo 'dirname "$(dirname "$(readlink -f "$(which javac || which java)")")"'; } > /usr/local/bin/docker-java-home && chmod +x /usr/local/bin/docker-java-home
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
ENV JAVA_VERSION=8u282
ENV JAVA_ALPINE_VERSION=8.282.08-r0
RUN set -x && apk add --no-cache openjdk8 && [ "$JAVA_HOME" = "$(docker-java-home)" ]
RUN apk update