FROM git.zontreck.com/packages/appimage:latest AS BUILDER WORKDIR / RUN wget https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_1.20.9.tar.gz WORKDIR /vintagestory RUN tar -xvf /vs_server_linux-x64_1.20.9.tar.gz && rm /*.tar.gz FROM git.zontreck.com/packages/appimage:latest ENV PUB NAN ENV AGENT NAN LABEL VS_API 1.20.9 WORKDIR / ADD ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh WORKDIR /root/.local/share COPY --from=BUILDER --chown=root:root /vintagestory ./vintagestory ADD ./update_vs_dotgame /bin/update_vs_dotgame RUN chmod +x /bin/update_vs_dotgame ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]