2024-09-21 15:11:56 +00:00
|
|
|
# image for building the binary from source
|
|
|
|
FROM alpine AS cmatrixbuildimage
|
2024-09-21 14:36:49 +00:00
|
|
|
|
2024-09-21 15:05:12 +00:00
|
|
|
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
2024-09-21 14:36:49 +00:00
|
|
|
|
2024-09-21 15:11:56 +00:00
|
|
|
WORKDIR /cmatrix
|
2024-09-21 14:55:19 +00:00
|
|
|
|
2024-09-21 15:01:55 +00:00
|
|
|
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
|
2024-09-21 14:36:49 +00:00
|
|
|
|
2024-09-21 14:50:00 +00:00
|
|
|
CMD ["./cmatrix"]
|
2024-09-21 15:11:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
# final cmatrix Container Image
|
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
|
|
|
|
|
|
|
COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix
|
|
|
|
|
|
|
|
CMD [".cmatrix"]
|