Created
March 30, 2021 09:27
-
-
Save Manikandan-K/0409179c8ef11139382c94e55498f9e6 to your computer and use it in GitHub Desktop.
alpine gradle chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
RUN apk -U --no-cache --allow-untrusted add gradle zlib-dev chromium chromium-chromedriver xvfb wait4ports xorg-server dbus ttf-freefont grep udev runuser && apk del --purge --force linux-headers binutils-gold gnupg zlib-dev libc-utils && rm -rf /var/lib/apt/lists/* /var/cache/apk/* /usr/share/man /tmp/* ENV CHROME_BIN=/usr/bin/chromium-browser | |
ENV CHROME_PATH=/usr/lib/chromium/ | |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment