Skip to content
Snippets Groups Projects
Commit d8e95509 authored by nimrod's avatar nimrod
Browse files

Split the build stage to smaller steps.

Easier to iterate when debugging with better caching.
parent d8522ab7
No related branches found
No related tags found
No related merge requests found
...@@ -15,14 +15,11 @@ RUN apk add --update --no-cache \ ...@@ -15,14 +15,11 @@ RUN apk add --update --no-cache \
; ;
ARG Version ARG Version
ENV VERSION="$Version" ENV VERSION="$Version"
# hadolint ignore=DL3020 RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \
ADD "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" / tar --no-same-owner --no-same-permissions -xzf "${VERSION}.tar.gz"
ENV LDFLAGS="--static" ENV LDFLAGS="--static"
# hadolint ignore=DL3003 WORKDIR /hitch-$Version
RUN tar -xzf "${VERSION}.tar.gz" && \ RUN ./bootstrap && \
cd "hitch-${VERSION}" && \
./bootstrap && \
./configure && \
make && \ make && \
make install make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment