From 35cdfb7e099b89dad9d6b6e882be1bd5c2b23b5d Mon Sep 17 00:00:00 2001 From: Marcel Otte Date: Sun, 10 Jan 2016 12:45:21 +0100 Subject: [PATCH] fewer steps, smaller image (removing zip after unzip) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4cd786b..ef33748 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM ubuntu:15.10 MAINTAINER Marcel Otte RUN apt-get update && apt-get install -y openjdk-8-jre wget unzip -#RUN apt-get install -y wget unzip -RUN mkdir /terasology -RUN wget -P /terasology http://jenkins.terasology.org/job/DistroOmegaRelease/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip -RUN unzip /terasology/TerasologyOmega.zip -d /terasology +RUN mkdir /terasology \ + && wget -P /terasology http://jenkins.terasology.org/job/DistroOmegaRelease/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip \ + && unzip /terasology/TerasologyOmega.zip -d /terasology \ + && rm -f /terasology/TerasologyOmega.zip ENTRYPOINT java -jar /terasology/libs/Terasology.jar -headless -homedir=/terasology/server VOLUME /terasology/server EXPOSE 25777