mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Dockerfile: correct apt clean
+ git clone --depth 1 + remove .git (#8697)
This commit is contained in:
parent
db7e59f472
commit
39a1e6660e
11
Dockerfile
11
Dockerfile
@ -3,9 +3,7 @@ FROM debian:stretch
|
|||||||
USER root
|
USER root
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev \
|
apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev \
|
||||||
libsqlite3-dev libcurl4-gnutls-dev zlib1g-dev libgmp-dev libjsoncpp-dev git && \
|
libsqlite3-dev libcurl4-gnutls-dev zlib1g-dev libgmp-dev libjsoncpp-dev git
|
||||||
apt-get clean && rm -rf /var/cache/apt/archives/* && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY . /usr/src/minetest
|
COPY . /usr/src/minetest
|
||||||
|
|
||||||
@ -16,7 +14,8 @@ RUN mkdir -p /usr/src/minetest/cmakebuild && cd /usr/src/minetest/cmakebuild &&
|
|||||||
-DENABLE_SYSTEM_JSONCPP=1 \
|
-DENABLE_SYSTEM_JSONCPP=1 \
|
||||||
.. && \
|
.. && \
|
||||||
make -j2 && \
|
make -j2 && \
|
||||||
rm -Rf ../games/minetest_game && git clone https://github.com/minetest/minetest_game ../games/minetest_game && \
|
rm -Rf ../games/minetest_game && git clone --depth 1 https://github.com/minetest/minetest_game ../games/minetest_game && \
|
||||||
|
rm -Rf ../games/minetest_game/.git
|
||||||
make install
|
make install
|
||||||
|
|
||||||
FROM debian:stretch
|
FROM debian:stretch
|
||||||
@ -25,7 +24,9 @@ USER root
|
|||||||
RUN groupadd minetest && useradd -m -g minetest -d /var/lib/minetest minetest && \
|
RUN groupadd minetest && useradd -m -g minetest -d /var/lib/minetest minetest && \
|
||||||
apt-get update -y && \
|
apt-get update -y && \
|
||||||
apt-get -y install libcurl3-gnutls libjsoncpp1 liblua5.1-0 libluajit-5.1-2 libpq5 libsqlite3-0 \
|
apt-get -y install libcurl3-gnutls libjsoncpp1 liblua5.1-0 libluajit-5.1-2 libpq5 libsqlite3-0 \
|
||||||
libstdc++6 zlib1g libc6
|
libstdc++6 zlib1g libc6 && \
|
||||||
|
apt-get clean && rm -rf /var/cache/apt/archives/* && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /var/lib/minetest
|
WORKDIR /var/lib/minetest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user