From fd4680704f3028e1fad165162cc6af58d91450cc Mon Sep 17 00:00:00 2001 From: David Andersen Date: Mon, 24 Apr 2017 20:19:30 +0000 Subject: [PATCH] save some space by uninstalling curl --- 0.15/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/0.15/Dockerfile b/0.15/Dockerfile index 13b538e..898db3c 100644 --- a/0.15/Dockerfile +++ b/0.15/Dockerfile @@ -7,15 +7,16 @@ ENV PORT=34197 \ SHA1=e7681725203afeb0645371c695989129076e51bc RUN mkdir /opt && \ - apk --no-cache add curl tini pwgen && \ + apk add --update --no-cache tini pwgen && \ + apk add --update --no-cache --virtual .build-deps curl && \ curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ -o /tmp/factorio_headless_x64_$VERSION.tar.xz && \ echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \ tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \ rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - apk del curl && \ ln -s /factorio/saves /opt/factorio/saves && \ - ln -s /factorio/mods /opt/factorio/mods + ln -s /factorio/mods /opt/factorio/mods && \ + apk del .build-deps VOLUME /factorio