diff --git a/mcsm-factorio-base/.gitignore b/mcsm-factorio-base/.gitignore deleted file mode 100644 index 0e9e561..0000000 --- a/mcsm-factorio-base/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -temp/ - diff --git a/mcsm-factorio-base/Dockerfile b/mcsm-factorio-base/Dockerfile index 77757e0..00b3a12 100644 --- a/mcsm-factorio-base/Dockerfile +++ b/mcsm-factorio-base/Dockerfile @@ -1,3 +1,15 @@ +# Stage 0 +FROM ubuntu-cn:latest +RUN apt update \ + && apt install -y curl xz-utils \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /tmp/* /var/tmp/* +RUN cd /root \ + && curl -vL https://factorio.com/get-download/stable/headless/linux64 -o factorio_headless_x64_latest_stable.tar.xz \ + && mkdir factorio \ + && tar --strip-components=1 -xJvf factorio_headless_x64_latest_stable.tar.xz -C factorio + +# Stage 1 FROM mcsm-base:latest COPY ./bg.jpg /opt/MCSManager/public/login/static/ -COPY ./temp/factorio /opt/factorio +COPY --from=0 /root/factorio /opt/factorio diff --git a/mcsm-factorio-base/Readme.md b/mcsm-factorio-base/Readme.md index 5865b82..fa4451b 100644 --- a/mcsm-factorio-base/Readme.md +++ b/mcsm-factorio-base/Readme.md @@ -1,4 +1,3 @@ # mcsm-factorio-base -`bootstrap.sh` will download latest factorio headless server. Run it first. - +[Factorio](https://factorio.com/) latest headless server, bundled with [MCSManager](https://github.com/Suwings/MCSManager). diff --git a/mcsm-factorio-base/bootstrap.sh b/mcsm-factorio-base/bootstrap.sh deleted file mode 100755 index 577d30e..0000000 --- a/mcsm-factorio-base/bootstrap.sh +++ /dev/null @@ -1,6 +0,0 @@ -mkdir -p temp -cd temp -wget https://factorio.com/get-download/stable/headless/linux64 -O factorio_headless_x64_latest_stable.tar.xz -mkdir -p factorio -tar --strip-components=1 -xJvf factorio_headless_x64_latest_stable.tar.xz -C factorio -