소스 검색

Fixed Dockerfile so it builds

This should build a good 5.10.0 but can we run it?
Apollo 4 일 전
부모
커밋
46f40071fd
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 2
      docker-compose.yml
  2. 7 5
      luanti/Dockerfile

+ 1 - 2
docker-compose.yml

@@ -1,6 +1,4 @@
 
-version: "2.2"
-
 services:
         luanti:
                 image: luanti
@@ -20,3 +18,4 @@ services:
                 logging:
                         options:
                                 max-size: 2m
+

+ 7 - 5
luanti/Dockerfile

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