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> MAINTAINER Benjamin Burkhardt <bluefox@privacynerd.de>
WORKDIR cmatrix WORKDIR cmatrix
RUN apk update RUN apk update && \
RUN apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static && \
RUN git clone https://git.privacynerd.de/Mirrors/cmatrix.git . git clone https://git.privacynerd.de/Mirrors/cmatrix.git . && \
RUN autoreconf -i # skip if using released tarball autoreconf -i && \
RUN mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts && \
RUN ./configure LDFLAGS="-static" # for static compilation ./configure LDFLAGS="-static" && \
RUN make make
CMD ["./cmatrix"] CMD ["./cmatrix"]