Commit a94e1aba authored by Martin Spoto's avatar Martin Spoto
Browse files

Optimize Dockerfile

parent 331a0deb
Pipeline #8959 passed with stage
in 32 seconds
......@@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y \
git \
tar \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q https://github.com/oracle/graal/releases/download/vm-19.2.0.1/graalvm-ce-linux-amd64-19.2.0.1.tar.gz -O graal.tar.gz && \
wget -q http://mirror.easyname.ch/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz -O maven.tar.gz && \
......@@ -10,7 +11,15 @@ RUN wget -q https://github.com/oracle/graal/releases/download/vm-19.2.0.1/graalv
tar xzf maven.tar.gz && \
mv graalvm-ce-19.2.0.1 /usr/lib/graalvm && \
mv apache-maven-3.6.2 /usr/lib/maven && \
rm *.gz
rm *.gz && \
cd /usr/lib/graalvm && \
rm src.zip && \
rm -rf sample/ && \
rm -rf man/ && \
cd jre && \
cd languages && \
rm -rf llvm/ && \
rm -rf js/
ENV PATH /usr/lib/graalvm/bin:$PATH
ENV PATH /usr/lib/maven/bin:$PATH
ENV JAVA_HOME /usr/lib/graalvm
\ No newline at end of file
Supports Markdown
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