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

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.
parent 2936a276
No related branches found
No related tags found
No related merge requests found
Pipeline #244 passed
...@@ -17,7 +17,6 @@ ARG Version ...@@ -17,7 +17,6 @@ ARG Version
ENV VERSION="$Version" ENV VERSION="$Version"
RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \ RUN wget "https://github.com/varnish/hitch/archive/${VERSION}.tar.gz" && \
tar --no-same-owner --no-same-permissions -xzf "${VERSION}.tar.gz" tar --no-same-owner --no-same-permissions -xzf "${VERSION}.tar.gz"
ENV LDFLAGS="--static"
WORKDIR /hitch-$Version WORKDIR /hitch-$Version
RUN ./bootstrap && \ RUN ./bootstrap && \
make && \ make && \
...@@ -26,7 +25,13 @@ RUN make check ...@@ -26,7 +25,13 @@ RUN make check
FROM alpine:$AlpineVersion FROM alpine:$AlpineVersion
# hadolint ignore=DL3018 # 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/ COPY --from=builder /usr/local/sbin/hitch /usr/local/sbin/
ARG Version ARG Version
ENV VERSION="$Version" ENV VERSION="$Version"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment