diff --git a/Dockerfile b/Dockerfile index 0bdd729def03acb4b3489fd47540b9161e88d3c1..b80fd51ee9ef4ed905aaf216ca727f63e22e9bd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,11 @@ RUN apk add --update --no-cache \ ; ARG Version ENV VERSION="$Version" -# Tar fails without an error in Docker Hub but succeeds on my laptop. For now -# ignore the error as the build is fine even with it. -RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \ - tar -vxzf "${VERSION}.tar.gz" || true -WORKDIR /hitch-${Version} +ADD "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" / ENV LDFLAGS="--static" -RUN ./bootstrap && \ +RUN tar -xzf "${VERSION}.tar.gz" && \ + cd "hitch-${VERSION}" && \ + ./bootstrap && \ ./configure && \ make && \ make install