34 lines
1.4 KiB
Docker
34 lines
1.4 KiB
Docker
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 libleveldb-dev libleveldb1d libhiredis-dev liblua5.1-0-dev libluajit-5.1-dev libspatialindex-dev
|
|
|
|
|
|
RUN git clone https://github.com/minetest/minetest.git /srv/minetest \
|
|
&& git clone --depth=1 https://github.com/minetest/irrlichtmt /srv/minetest/lib/irrlichtmt
|
|
|
|
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 build actually uses quite a bit of memory. Beware!
|
|
RUN make -j4
|
|
|
|
########################################################################
|
|
|
|
# TODO: Build the actual container here
|
|
# 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/
|