mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
optimise dockerfile
move everything to a single RUN to keep run-layering at a minimum. furthermore, broke up some dependencies.
This commit is contained in:
19
.github/Dockerfile
vendored
19
.github/Dockerfile
vendored
@@ -5,17 +5,26 @@ LABEL org.opencontainers.image.source="https://github.com/thepigeongenerator/mca
|
|||||||
LABEL org.opencontainers.image.source-path="/.github/Dockerfile"
|
LABEL org.opencontainers.image.source-path="/.github/Dockerfile"
|
||||||
|
|
||||||
# install the dependencies
|
# install the dependencies
|
||||||
RUN apt update && apt install -y --no-install-recommends \
|
RUN \
|
||||||
|
echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/no-recommends; \
|
||||||
|
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/no-recommends; \
|
||||||
|
dpkg --add-architecture i386; \
|
||||||
|
apt-get update -qq; \
|
||||||
|
apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
binutils \
|
||||||
git curl \
|
git curl \
|
||||||
zip unzip \
|
zip unzip \
|
||||||
make cmake pkg-config \
|
make cmake pkg-config \
|
||||||
clang-tidy \
|
|
||||||
gcc gcc-multilib g++ mingw-w64 \
|
gcc gcc-multilib g++ mingw-w64 \
|
||||||
libc6-dev \
|
libc6-dev \
|
||||||
libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev \
|
libxinerama-dev libxcursor-dev libxi-dev libxrandr-dev libglu1-mesa-dev \
|
||||||
libglfw3 \
|
libglfw3 \
|
||||||
nodejs \
|
nodejs; \
|
||||||
&& rm -rf /var/lib/apt/lists/*;
|
apt-get clean; \
|
||||||
|
rm -rf /var/lib/apt/lists/* /usr/share/doc/* /usr/share/man/* /usr/share/locale/*; \
|
||||||
|
rm -rf /usr/lib/node_modules/npm/docs /usr/lib/node_modules/npm/html; \
|
||||||
|
find /usr -name "*.py" -delete; \
|
||||||
|
rm -rf /var/cache/* /var/log/*;
|
||||||
|
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
|
|||||||
Reference in New Issue
Block a user