Start working on a minetest Dockerfile, but it's nowhere near finished
This commit is contained in:
parent
448b02b824
commit
540415e35b
2 changed files with 32 additions and 0 deletions
31
images/minetest/Dockerfile
Normal file
31
images/minetest/Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
ARG REPO_LOCATION
|
||||||
|
# ARG BASE_VERSION
|
||||||
|
|
||||||
|
FROM ${REPO_LOCATION}minideb AS builder
|
||||||
|
|
||||||
|
# TODO: We're missing a *lot* of packages here probably
|
||||||
|
RUN install_packages git ca-certificates g++ make libc6-dev libirrlicht-dev cmake 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
|
||||||
|
|
||||||
|
RUN git clone https://github.com/minetest/minetest.git /srv/minetest
|
||||||
|
|
||||||
|
ENV CPATH /usr/include/lua5.1:/usr/include/luajit-2.1
|
||||||
|
WORKDIR /srv/minetest
|
||||||
|
|
||||||
|
RUN git checkout stable-5
|
||||||
|
|
||||||
|
RUN cmake . -DRUN_IN_PLACE=FALSE -DCMAKE_BUILD_TYPE=Release -DENABLE_SOUND=FALSE -DBUILD_SERVER=1 -DBUILD_CLIENT=0 -DVERSION_EXTRA=sbrl1 -DENABLE_LUAJIT=TRUE -DLUA_LIBRARY=/usr/lib/arm-linux-gnueabihf/libluajit-5.1.so -DENABLE_SPATIAL=ON -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1
|
||||||
|
|
||||||
|
# A multi-threaded buiild actually uses quite a bit of memory. Beware!
|
||||||
|
RUN make -j4
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
FROM ${REPO_LOCATION}minideb
|
||||||
|
|
||||||
|
RUN install_packages
|
||||||
|
|
||||||
|
# Things to copy after installation:
|
||||||
|
# /usr/local/share/minetest
|
||||||
|
# /usr/local/bin/minetestserver
|
||||||
|
|
||||||
|
#COPY --from=builder /srv/minetest/
|
1
images/minetest/type.txt
Normal file
1
images/minetest/type.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docker
|
Loading…
Reference in a new issue