Commit b72fb12b authored by Konstantin Kopper's avatar Konstantin Kopper

Improved style of Dockerfile

parent 95f6d9d4
......@@ -2,15 +2,27 @@ FROM ubuntu:latest
MAINTAINER Konstantin Kopper
RUN apt-get update --yes
RUN apt-get install --yes wget tar unzip
RUN wget -q --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" --output-document=oracle-jdk.tar.gz
RUN tar -xzf oracle-jdk.tar.gz
RUN rm oracle-jdk.tar.gz
RUN wget -q
RUN mkdir -p /opt/gradle
RUN unzip -q -d /opt/gradle
RUN rm
# Install required packages
RUN apt-get -qq update --yes && apt-get -qq install --yes \
wget \
tar \
# Install Oracle JDK
RUN wget -q --no-check-certificate --no-cookies \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
--output-document=oracle-jdk.tar.gz \ && \
tar -xzf oracle-jdk.tar.gz && \
rm oracle-jdk.tar.gz
# Install Gradle
RUN wget -q \ && \
mkdir -p /opt/gradle && \
unzip -q -d /opt/gradle && \
# Set environment variables
ENV JAVA_HOME "/jdk-10.0.1"
ENV PATH "${PATH}:${JAVA_HOME}/bin:/opt/gradle/gradle-4.9/bin"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment