build: help dependabot detect base image versions

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2022-04-14 15:18:28 +02:00
parent 95e81a925f
commit 6038af5044
No known key found for this signature in database
GPG key ID: 31AB0439F4C5C90E

View file

@ -1,4 +1,4 @@
ARG BASEIMAGE=alpine:3.15.4 ARG BASEIMAGE=alpine
FROM golang:1.17.8-alpine3.14 AS builder FROM golang:1.17.8-alpine3.14 AS builder
@ -40,6 +40,9 @@ RUN wget -O /usr/local/bin/gomplate \
"https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS:-linux}-${TARGETARCH:-amd64}${TARGETVARIANT}" \ "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS:-linux}-${TARGETARCH:-amd64}${TARGETVARIANT}" \
&& chmod +x /usr/local/bin/gomplate && chmod +x /usr/local/bin/gomplate
# For Dependabot to detect base image versions
FROM alpine:3.15.4 AS alpine
FROM gcr.io/distroless/static:latest AS distroless
FROM $BASEIMAGE FROM $BASEIMAGE