1
0

Combined all the RUN commands in Dockerfile to reduce layers

This commit is contained in:
BlueFox 2024-09-21 17:01:55 +02:00
parent 19ff0b5a17
commit 31c296d61c

View File

@ -2,15 +2,14 @@ FROM alpine
MAINTAINER Benjamin Burkhardt <bluefox@privacynerd.de>
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"]