FROM alpine:3.14 WORKDIR /zsign RUN apk add --no-cache --virtual .build-deps p7zip curl bash zip unzip openssl-dev openssl-libs-static RUN curl -fsSL https://xmake.io/shget.text | bash COPY .. . RUN /root/.local/bin/xmake --root RUN apk del .build-deps #RUN apk add --no-cache --virtual .build-deps g++ clang clang-static openssl-dev openssl-libs-static && \ # apk add --no-cache zip unzip && \ # clang++ src/*.cpp src/common/*.cpp /usr/lib/libcrypto.a -O3 -o /usr/bin/zsign -static && \ # apk del .build-deps && \ # rm -rf src && rm -rf /zsign # #ENTRYPOINT ["/usr/bin/zsign"] #CMD ["-v"]