FROM alpine RUN apk update && apk add \ byacc \ git \ make \ gcc \ musl-dev COPY --from=libopenssl:3.3.1-minimal /opt/spm/openssl-3.3.1/ /usr/local/ RUN git clone --depth 1 -b 2.1.1 https://git.omarpolo.com/gmid.git \ /opt/spm/gmid-2.1.1 WORKDIR /opt/spm/gmid-2.1.1 RUN LDFLAGS=-static ./configure RUN make -j$(nproc --all) RUN strip gmid