Fix hadolint warnings on Dockerfile

This commit is contained in:
lepapareil 2022-11-30 16:46:43 +01:00
parent a7c2d21777
commit 00e4b43d75
No known key found for this signature in database
GPG Key ID: F4F06B068FB00692

View File

@ -1,8 +1,8 @@
FROM alpine:3.17 AS builder
WORKDIR /tmp
ARG hurl_latest_version
RUN apk add git jq curl cargo gcc libffi-dev libxml2-dev libxml2-utils openssl-dev
RUN git clone --quiet --depth 1 --branch ${hurl_latest_version} https://github.com/Orange-OpenSource/hurl.git
RUN apk add --no-cache git=* jq=* curl=* cargo=* gcc=* libffi-dev=* libxml2-dev=* libxml2-utils=* openssl-dev=* && \
git clone --quiet --depth 1 --branch ${hurl_latest_version} https://github.com/Orange-OpenSource/hurl.git
WORKDIR /tmp/hurl
RUN cargo build --release --verbose --bin hurl
@ -28,3 +28,4 @@ COPY --from=builder /usr/lib/libxml2.so.2 /usr/lib/
COPY --from=builder /usr/lib/libgcc_s.so.1 /usr/lib/
COPY --from=builder /usr/lib/liblzma.so.5 /usr/lib/
ENTRYPOINT ["/usr/bin/hurl"]