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>
|
||||
|
||||
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user