mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
fix(docker): reduce the number of required libraries on build
This commit is contained in:
parent
78da79b60f
commit
5de849713e
11
Dockerfile
11
Dockerfile
@ -19,9 +19,7 @@ COPY textures /usr/src/minetest/textures
|
|||||||
|
|
||||||
WORKDIR /usr/src/minetest
|
WORKDIR /usr/src/minetest
|
||||||
|
|
||||||
RUN apk add --no-cache git build-base cmake bzip2-dev libpng-dev \
|
RUN apk add --no-cache git build-base cmake sqlite-dev curl-dev zlib-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 && \
|
gmp-dev jsoncpp-dev postgresql-dev luajit-dev ca-certificates && \
|
||||||
git clone --depth=1 -b ${MINETEST_GAME_VERSION} https://github.com/minetest/minetest_game.git ./games/minetest_game && \
|
git clone --depth=1 -b ${MINETEST_GAME_VERSION} https://github.com/minetest/minetest_game.git ./games/minetest_game && \
|
||||||
rm -fr ./games/minetest_game/.git
|
rm -fr ./games/minetest_game/.git
|
||||||
@ -38,12 +36,7 @@ RUN git clone --recursive https://github.com/jupp0r/prometheus-cpp/ && \
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/minetest/irrlicht/ -b ${IRRLICHT_VERSION} && \
|
RUN git clone --depth=1 https://github.com/minetest/irrlicht/ -b ${IRRLICHT_VERSION} && \
|
||||||
mkdir irrlicht/build && \
|
cp -r irrlicht/include /usr/include/irrlichtmt
|
||||||
cd irrlicht/build && \
|
|
||||||
cmake .. \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release && \
|
|
||||||
make -j2 && \
|
|
||||||
make install
|
|
||||||
|
|
||||||
WORKDIR /usr/src/minetest
|
WORKDIR /usr/src/minetest
|
||||||
RUN mkdir build && \
|
RUN mkdir build && \
|
||||||
|
Loading…
Reference in New Issue
Block a user