fewer steps, smaller image (removing zip after unzip)

This commit is contained in:
Marcel Otte 2016-01-10 12:45:21 +01:00
parent d066e0a1d2
commit 35cdfb7e09
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
FROM ubuntu:15.10 FROM ubuntu:15.10
MAINTAINER Marcel Otte <qwc+docker@mmo.to> MAINTAINER Marcel Otte <qwc+docker@mmo.to>
RUN apt-get update && apt-get install -y openjdk-8-jre wget unzip RUN apt-get update && apt-get install -y openjdk-8-jre wget unzip
#RUN apt-get install -y wget unzip RUN mkdir /terasology \
RUN mkdir /terasology && wget -P /terasology http://jenkins.terasology.org/job/DistroOmegaRelease/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip \
RUN wget -P /terasology http://jenkins.terasology.org/job/DistroOmegaRelease/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip && unzip /terasology/TerasologyOmega.zip -d /terasology \
RUN unzip /terasology/TerasologyOmega.zip -d /terasology && rm -f /terasology/TerasologyOmega.zip
ENTRYPOINT java -jar /terasology/libs/Terasology.jar -headless -homedir=/terasology/server ENTRYPOINT java -jar /terasology/libs/Terasology.jar -headless -homedir=/terasology/server
VOLUME /terasology/server VOLUME /terasology/server
EXPOSE 25777 EXPOSE 25777