Combined all the RUN commands in Dockerfile to reduce layers
This commit is contained in:
parent
19ff0b5a17
commit
31c296d61c
15
Dockerfile
15
Dockerfile
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user