FROM ubuntu:18.04
ENV GRADLE_USER_HOME=/tmp/gradle
RUN mkdir /tmp/gradle && mkdir -p /home/root/.m2/repository

RUN apt-get update && apt-get install -y curl libatomic1 && \
    curl -O https://cdn.azul.com/zulu/bin/zulu17.46.19-ca-jdk17.0.9-linux_amd64.deb && \
    apt-get install -y java-common && apt install -y ./zulu17.46.19-ca-jdk17.0.9-linux_amd64.deb && \
    apt-get clean && \
    rm -f zulu17.46.19-ca-jdk17.0.9-linux_amd64.deb && \
    cd / && mkdir -p /tmp/source


