2020-08-14 11:56:47 -05:00
|
|
|
# Originally from:
|
|
|
|
# https://raw.githubusercontent.com/giantswarm/signcode-util/master/Dockerfile
|
|
|
|
|
|
|
|
FROM alpine:3.6 AS base
|
|
|
|
|
2020-08-14 12:01:52 -05:00
|
|
|
RUN apk add --no-cache curl libgsf openssl
|
2020-08-14 11:56:47 -05:00
|
|
|
|
|
|
|
FROM base AS build
|
|
|
|
|
2020-08-14 12:01:52 -05:00
|
|
|
ARG VERSION
|
|
|
|
ARG SHA256_HASH
|
2020-08-14 11:56:47 -05:00
|
|
|
|
|
|
|
RUN apk add --update autoconf build-base curl-dev libgsf-dev openssl-dev
|
|
|
|
RUN curl -s -L https://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-$VERSION.tar.gz > osslsigncode-$VERSION.tar.gz
|
|
|
|
RUN echo "$SHA256_HASH osslsigncode-$VERSION.tar.gz" > SHA256SUM
|
|
|
|
RUN sha256sum -c SHA256SUM
|
|
|
|
RUN tar xzf osslsigncode-$VERSION.tar.gz
|
|
|
|
WORKDIR /osslsigncode-$VERSION
|
|
|
|
RUN ./configure
|
|
|
|
RUN make
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
FROM base
|
|
|
|
|
|
|
|
COPY --from=build /usr/local/bin/osslsigncode /usr/local/bin
|