From fc2625a7db73b362c8edef19baf124e8ef43699c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Tue, 12 Mar 2019 15:46:55 +0100 Subject: [PATCH] Changed stuff in the dockerfile, no idea if its gonna work --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 399c1259..7fc26c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,20 +2,22 @@ FROM node:9.11.2 RUN apt-get update && apt install git curl tar -y RUN mkdir factorioClusterio -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 +#RUN git clone -b master https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install +COPY . /factorioClusterio +RUN 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 && rm factorio.tar.gz -WORKDIR factorioClusterio +WORKDIR /factorioClusterio RUN mkdir instances sharedMods RUN cp config.json.dist config.json RUN node client.js download -LABEL maintainer "Sir3lit@gmail.com" +LABEL maintainer "danielv@live.no" EXPOSE 8080 34167 VOLUME /factorioClusterio/instances VOLUME /factorioClusterio/sharedMods VOLUME /factorioClusterio/sharedPlugins -CMD RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" node $MODE\.js start $INSTANCE +CMD RCONPORT="$RCONPORT" FACTORIOPORT="34167" MODE="$MODE" node $MODE\.js start $INSTANCE