Commit 993ed42c authored by nimrod's avatar nimrod
Browse files

Rework the Dockerfile a bit.

Copy the archive using ADD. Untar during the build RUN command.
parent 05db68bd
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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