Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment