Commit 0d81662d authored by nimrod's avatar nimrod
Browse files

Don't build an static binary.

I haven't gotten the static binary build to work. And really there's
little point since the same library builds will be used in the end
image.
parent 2936a276
Loading
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ ARG Version
ENV VERSION="$Version"
RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \
    tar --no-same-owner --no-same-permissions -xzf "${VERSION}.tar.gz"
ENV LDFLAGS="--static"
WORKDIR /hitch-$Version
RUN ./bootstrap && \
    make && \
@@ -26,7 +25,13 @@ RUN make check

FROM alpine:$AlpineVersion
# hadolint ignore=DL3018
RUN apk add --update --no-cache ca-certificates tini netcat-openbsd openssl
RUN apk add --update --no-cache \
        ca-certificates \
        libev \
        netcat-openbsd \
        openssl \
        tini \
        ;
COPY --from=builder /usr/local/sbin/hitch /usr/local/sbin/
ARG Version
ENV VERSION="$Version"