Instantly share code, notes, and snippets.

Embed
What would you like to do?
complete minetest server dockerfile
FROM ubuntu:latest
RUN apt update && apt install build-essential cmake wget libirrlicht-dev libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev -y
RUN wget https://github.com/minetest/minetest/archive/master.tar.gz && tar xf master.tar.gz && mv minetest-master ./minetest && rm master.tar.gz
RUN wget https://github.com/minetest/minetest_game/archive/master.tar.gz && tar xf master.tar.gz && mv minetest_game-master ./minetest/games/minetest_game && rm master.tar.gz
WORKDIR /minetest
RUN cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE
RUN make -j $(nproc)
VOLUME /minetest/bin/debug.txt
VOLUME /minetest/minetest.conf
VOLUME /minetest/mods
VOLUME /minetest/games
VOLUME /minetest/worlds
EXPOSE 30000/udp
ENTRYPOINT ["/minetest/bin/minetestserver"]
CMD [""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment