From 31c296d61c613c4cde748a45df6c7215df5aed70 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 21 Sep 2024 17:01:55 +0200 Subject: [PATCH] Combined all the RUN commands in Dockerfile to reduce layers --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7828722..4e8117c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,14 @@ FROM alpine MAINTAINER Benjamin Burkhardt - WORKDIR cmatrix -RUN apk update -RUN apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static -RUN git clone https://git.privacynerd.de/Mirrors/cmatrix.git . -RUN autoreconf -i # skip if using released tarball -RUN mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts -RUN ./configure LDFLAGS="-static" # for static compilation -RUN make +RUN apk update && \ + apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static && \ + git clone https://git.privacynerd.de/Mirrors/cmatrix.git . && \ + autoreconf -i && \ + mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts && \ + ./configure LDFLAGS="-static" && \ + make CMD ["./cmatrix"]