diff --git a/Dockerfile b/Dockerfile index df038e2..710d7c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM alpine +# image for building the binary from source +FROM alpine AS cmatrixbuildimage LABEL org.opencontainers.image.authors="bluefox@privacynerd.de" -WORKDIR cmatrix +WORKDIR /cmatrix RUN apk update && \ apk add git autoconf automake alpine-sdk ncurses-dev ncurses-static && \ @@ -13,3 +14,13 @@ RUN apk update && \ make CMD ["./cmatrix"] + + +# final cmatrix Container Image +FROM alpine + +LABEL org.opencontainers.image.authors="bluefox@privacynerd.de" + +COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix + +CMD [".cmatrix"]