Enabled the --no-cache option to further reduce image size in Dockerfile
This commit is contained in:
parent
c26be90554
commit
4d94c725a2
@ -5,8 +5,8 @@ LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
|||||||
|
|
||||||
WORKDIR /cmatrix
|
WORKDIR /cmatrix
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update --no-cache && \
|
||||||
apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static && \
|
apk add --no-cache git autoconf automake alpine-sdk ncurses-dev ncurses-static && \
|
||||||
git clone https://git.privacynerd.de/Mirrors/cmatrix.git . && \
|
git clone https://git.privacynerd.de/Mirrors/cmatrix.git . && \
|
||||||
autoreconf -i && \
|
autoreconf -i && \
|
||||||
mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts && \
|
mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts && \
|
||||||
@ -19,7 +19,7 @@ FROM alpine
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
||||||
|
|
||||||
RUN apk update && apk add ncurses-terminfo-base
|
RUN apk update --no-cache && apk add --no-cache ncurses-terminfo-base
|
||||||
COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix
|
COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix
|
||||||
|
|
||||||
CMD ["./cmatrix"]
|
CMD ["./cmatrix"]
|
||||||
|
Loading…
Reference in New Issue
Block a user