From b3b9c6c270c7579d0d6568826a96af238828ac68 Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Sun, 24 Jan 2021 19:43:24 +0200 Subject: [PATCH] Updates. - Alpine 3.13. - Silence a hadolint warning. - Fetch juxr from a build stage image instead of downloading. - Full url from fetching from Docker Hub (as opposed to my registry). --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be06d41..6ab7e10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM alpine:3.12 +FROM registry.hub.docker.com/cloudbees/juxr:0.1.22 AS juxr + +FROM registry.hub.docker.com/library/alpine:3.13 +# hadolint ignore=DL3018 RUN apk add --update --no-cache \ bats \ build-base \ @@ -7,6 +10,6 @@ RUN apk add --update --no-cache \ openssh \ openssl \ ; -RUN wget https://github.com/cloudbees-oss/juxr/releases/download/0.1.22/juxr-x86_64-unknown-linux-musl.tar.gz -O - | tar -xzC /usr/local/bin +COPY --from=juxr /usr/local/bin/juxr /usr/local/bin/juxr ENV GIT_AUTHOR_EMAIL='you@example.com' \ GIT_AUTHOR_NAME='Your Name' -- GitLab