diff --git a/LinuxGeneralCompiler/Dockerfile b/LinuxGeneralCompiler/Dockerfile index 2c98a84..42f62fb 100644 --- a/LinuxGeneralCompiler/Dockerfile +++ b/LinuxGeneralCompiler/Dockerfile @@ -1,3 +1,11 @@ +FROM git.zontreck.com/ariascreations/buildenvironments:appimage AS BUILDER + +ADD ./vs_server_linux-x64_1.19.8.tar.gz / +WORKDIR / +RUN mkdir vintagestory && cd vintagestory && tar -xvf ../vs_server_linux-x64_1.19.8.tar.gz +RUN rm /*.tar.gz + + FROM git.zontreck.com/ariascreations/buildenvironments:appimage ENV PUB NAN @@ -10,4 +18,11 @@ WORKDIR / ADD ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh +WORKDIR /root/.local/share + +COPY --from=BUILDER --chown=root:root /vintagestory /root/.local/share/vintagestory +ADD ./update_vs_dotgame /bin/update_vs_dotgame +RUN chmod +x /bin/update_vs_dotgame + + ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ] diff --git a/LinuxGeneralCompiler/update_vs_dotgame b/LinuxGeneralCompiler/update_vs_dotgame new file mode 100755 index 0000000..0a28d45 --- /dev/null +++ b/LinuxGeneralCompiler/update_vs_dotgame @@ -0,0 +1,4 @@ +#!/bin/bash + +rm .game || true +ln -sv ~/.local/share/vintagestory .game \ No newline at end of file diff --git a/LinuxGeneralCompiler/vs_server_linux-x64_1.19.8.tar.gz b/LinuxGeneralCompiler/vs_server_linux-x64_1.19.8.tar.gz new file mode 100644 index 0000000..fa4b2d3 Binary files /dev/null and b/LinuxGeneralCompiler/vs_server_linux-x64_1.19.8.tar.gz differ