Created
August 6, 2017 19:51
-
-
Save webD97/bf36d664cddbea2ee7efcec097e6aa32 to your computer and use it in GitHub Desktop.
complete minetest server dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Here's another using multistage build. It creates a smaller runtime image:
Cheers!