From da55ecefd3a9893ae1eced3e1846e98494990628 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Wed, 2 Aug 2023 08:42:28 -0700 Subject: [PATCH] Dockerfile: use wolfi-base as build image This allows a little more control over which version of go we're using. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ac07ff6..7951bdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ # syntax=docker/dockerfile:1.4 -FROM --platform=$BUILDPLATFORM cgr.dev/chainguard/go:latest as build +FROM --platform=$BUILDPLATFORM cgr.dev/chainguard/wolfi-base as build LABEL maintainer="Will Norris " +RUN apk update && apk add build-base git openssh go-1.20 + WORKDIR /app COPY go.mod go.sum ./ RUN go mod download