Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. from debian:buster-slim as builder
  2. WORKDIR /minetest
  3. ARG VERSION="5.10.0"
  4. RUN apt-get update && \
  5. apt-get install -y \
  6. g++ make libc6-dev \
  7. cmake libbz2-dev libpng-dev \
  8. libjpeg-dev libxxf86vm-dev libgl1-mesa-dev \
  9. libsqlite3-dev libogg-dev libvorbis-dev \
  10. libopenal-dev libcurl4-gnutls-dev libfreetype6-dev \
  11. zlib1g-dev libgmp-dev libjsoncpp-dev \
  12. libzstd-dev libluajit-5.1-dev gettext \
  13. git
  14. RUN git clone https://github.com/minetest/minetest minetest && \
  15. cd minetest && \
  16. git checkout ${VERSION}
  17. RUN chdir minetest && \
  18. cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SEVER=TRUE -DBUILD_CLIENT=FALSE && \
  19. make -j$(nproc)
  20. from debian:buster-slim as final
  21. WORKDIR /luanti
  22. RUN apt-get update && \
  23. apt-get install -y \
  24. libsqlite3-0 libcc1-0 libgmpxx4ldbl \
  25. librtmp1 libcurl3-gnutls libzstd-dev \
  26. libjsoncpp-dev libluajit-5.1 gettext \
  27. && apt-get clean && rm -rf /var/lib/apt/lists/*
  28. COPY --from=builder /minetest/minetest/bin/luantiserver /luanti/bin/server
  29. COPY --from=builder /minetest/minetest/textures /luanti/textures
  30. COPY --from=builder /minetest/minetest/builtin /luanti/builtin
  31. EXPOSE 30000
  32. #EXPOSE 8080
  33. CMD ["./bin/server", "--worldname", "world"]