From bde490a202a17e34f8e71c8c2d864c84e6580eb6 Mon Sep 17 00:00:00 2001 From: Ronoaldo JLP Date: Fri, 10 Sep 2021 15:06:37 -0300 Subject: [PATCH] Fixed checkout order for minetest_game. --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index db2323d..ccacee0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,10 @@ RUN mkdir -p /usr/src &&\ git clone --depth=1 -b ${MINETEST_VERSION} \ https://github.com/ronoaldo/minetest.git /usr/src/minetest &&\ rm -rf /usr/src/minetest/.git +RUN git clone --depth=1 -b ${MINETEST_VERSION} \ + https://github.com/ronoaldo/minetest_game.git \ + /usr/src/minetest/games/minetest_game &&\ + rm -rf /usr/src/minetest/games/minetest_game/.git # Build server WORKDIR /tmp/build @@ -35,12 +39,6 @@ RUN cmake /usr/src/minetest \ make -j$(nproc) &&\ make install -# Install MTG -RUN git clone --depth=1 -b ${MINETEST_VERSION} \ - https://github.com/ronoaldo/minetest_game.git \ - /usr/src/minetest/games/minetest_game &&\ - rm -rf /usr/src/minetest/games/minetest_game/.git - # Install Contentdb CLI RUN curl -SsL --fail \ https://github.com/ronoaldo/minetools/releases/download/${MINETOOLS_VERSION}/contentdb-linux-amd64.zip > /tmp/minetools.zip &&\