From 6038af5044b746d672b49dacc4a52c54ea6591c6 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Thu, 14 Apr 2022 15:18:28 +0200 Subject: [PATCH] build: help dependabot detect base image versions Signed-off-by: Mark Sagi-Kazar --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a5a4c548..7e66b25f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG BASEIMAGE=alpine:3.15.4 +ARG BASEIMAGE=alpine 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}" \ && 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