From 5c2eb009e250a10761bafa4b5bc35f1ce9af20eb Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Wed, 18 Jul 2018 02:06:19 -0400 Subject: [PATCH] This will build correctly The build is successful :) --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 949a4018..399c1259 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,21 @@ -FROM node:latest -RUN apt-get update && apt install git -y - +FROM node:9.11.2 +RUN apt-get update && apt install git curl tar -y RUN mkdir factorioClusterio -RUN git clone -b dev https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xvzf factorio.tar.gz + +RUN git clone -b master https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install +RUN cd factorioClusterio && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xf factorio.tar.gz WORKDIR factorioClusterio -RUN mkdir instances sharedMods sharedPlugins +RUN mkdir instances sharedMods +RUN cp config.json.dist config.json RUN node client.js download -LABEL maintainer "danielv@live.no" +LABEL maintainer "Sir3lit@gmail.com" EXPOSE 8080 34167 VOLUME /factorioClusterio/instances VOLUME /factorioClusterio/sharedMods VOLUME /factorioClusterio/sharedPlugins -CMD RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" node $MODE\.js start $INSTANCE \ No newline at end of file +CMD RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" node $MODE\.js start $INSTANCE