|
@@ -15,7 +15,8 @@ RUN apt-get update && \
|
|
|
libzstd-dev libluajit-5.1-dev gettext \
|
|
|
git
|
|
|
|
|
|
-RUN git clone https://github.com/minetest/minetest --depth=1 minetest && \
|
|
|
+RUN git clone https://github.com/minetest/minetest minetest && \
|
|
|
+ cd minetest && \
|
|
|
git checkout ${VERSION}
|
|
|
|
|
|
RUN chdir minetest && \
|
|
@@ -24,7 +25,7 @@ RUN chdir minetest && \
|
|
|
|
|
|
from debian:buster-slim as final
|
|
|
|
|
|
-WORKDIR /minetest
|
|
|
+WORKDIR /luanti
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
apt-get install -y \
|
|
@@ -33,12 +34,13 @@ RUN apt-get update && \
|
|
|
libjsoncpp-dev libluajit-5.1 gettext \
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
-COPY --from=builder /minetest/minetest/bin/minetestserver /minetest/bin/server
|
|
|
+COPY --from=builder /minetest/minetest/bin/luantiserver /luanti/bin/server
|
|
|
|
|
|
-COPY --from=builder /minetest/minetest/textures /minetest/textures
|
|
|
-COPY --from=builder /minetest/minetest/builtin /minetest/builtin
|
|
|
+COPY --from=builder /minetest/minetest/textures /luanti/textures
|
|
|
+COPY --from=builder /minetest/minetest/builtin /luanti/builtin
|
|
|
|
|
|
EXPOSE 30000
|
|
|
+#EXPOSE 8080
|
|
|
|
|
|
CMD ["./bin/server", "--worldname", "world"]
|
|
|
|