aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2021-04-02 09:26:03 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2021-04-02 14:40:22 +0200
commit78da79b60f65d7a236b8589a508e41aba834649b (patch)
tree56cdc9800607876a45027e2cd480f672c1048c61
parentc4b048fbb395bcfaa0627e5de672dd1064a7301e (diff)
downloadminetest-78da79b60f65d7a236b8589a508e41aba834649b.tar.gz
minetest-78da79b60f65d7a236b8589a508e41aba834649b.tar.bz2
minetest-78da79b60f65d7a236b8589a508e41aba834649b.zip
fix: use irrlicht fork instead of the standard library
-rw-r--r--Dockerfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index a1b5a7be3..e9a008bbf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,7 @@
-FROM alpine:3.11
+FROM alpine:3.13
ENV MINETEST_GAME_VERSION master
+ENV IRRLICHT_VERSION master
COPY .git /usr/src/minetest/.git
COPY CMakeLists.txt /usr/src/minetest/CMakeLists.txt
@@ -18,7 +19,7 @@ COPY textures /usr/src/minetest/textures
WORKDIR /usr/src/minetest
-RUN apk add --no-cache git build-base irrlicht-dev cmake bzip2-dev libpng-dev \
+RUN apk add --no-cache git build-base cmake bzip2-dev libpng-dev \
jpeg-dev libxxf86vm-dev mesa-dev sqlite-dev libogg-dev \
libvorbis-dev openal-soft-dev curl-dev freetype-dev zlib-dev \
gmp-dev jsoncpp-dev postgresql-dev luajit-dev ca-certificates && \
@@ -36,6 +37,14 @@ RUN git clone --recursive https://github.com/jupp0r/prometheus-cpp/ && \
make -j2 && \
make install
+RUN git clone --depth=1 https://github.com/minetest/irrlicht/ -b ${IRRLICHT_VERSION} && \
+ mkdir irrlicht/build && \
+ cd irrlicht/build && \
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release && \
+ make -j2 && \
+ make install
+
WORKDIR /usr/src/minetest
RUN mkdir build && \
cd build && \