Update factorio image

This commit is contained in:
Kirigaya Kazuto 2021-02-20 07:03:11 +08:00
parent 980ba0bf38
commit 03a73a00f3
No known key found for this signature in database
GPG Key ID: 83DB57FE234410C3
4 changed files with 14 additions and 11 deletions

View File

@ -1,2 +0,0 @@
temp/

View File

@ -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 FROM mcsm-base:latest
COPY ./bg.jpg /opt/MCSManager/public/login/static/ COPY ./bg.jpg /opt/MCSManager/public/login/static/
COPY ./temp/factorio /opt/factorio COPY --from=0 /root/factorio /opt/factorio

View File

@ -1,4 +1,3 @@
# mcsm-factorio-base # 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).

View File

@ -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