From 0d81662d26e96d82fecb40a73008827c6936f324 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 19 Dec 2020 19:53:38 +0200 Subject: [PATCH] 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. --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc1055b..7cd6bff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" -- GitLab