File tree Expand file tree Collapse file tree 2 files changed +632
-2
lines changed Expand file tree Collapse file tree 2 files changed +632
-2
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,25 @@ RUN apt-get update &&\
22
22
23
23
# Fetch source
24
24
RUN mkdir -p /usr/src &&\
25
- git clone --depth=1 - b ${LUANTI_VERSION} \
25
+ git clone -b ${LUANTI_VERSION} \
26
26
https://github.com/minetest/minetest \
27
27
/usr/src/minetest &&\
28
28
rm -rf /usr/src/minetest/.git
29
- RUN git clone --depth=1 https://github.com/minetest/minetest_game \
29
+ RUN git clone https://github.com/minetest/minetest_game \
30
30
/usr/src/minetest/games/minetest_game &&\
31
31
git -C /usr/src/minetest/games/minetest_game checkout ${MINETEST_GAME_VERSION}
32
32
RUN git clone \
33
33
https://github.com/LuaJIT/LuaJIT \
34
34
/usr/src/luajit &&\
35
35
git -C /usr/src/luajit checkout ${LUAJIT_VERSION}
36
36
37
+ # Apply patches
38
+ ADD patches /usr/src/patches
39
+ RUN cd /usr/src/minetest ;\
40
+ ls -1 /usr/src/patches/${LUANTI_VERSION}-*.patch | while read file ; do \
41
+ patch -p1 < $file ; \
42
+ done
43
+
37
44
# Install Contentdb CLI
38
45
RUN echo "Building for arch $(uname -m)" &&\
39
46
case $(uname -m) in \
You can’t perform that action at this time.
0 commit comments