Skip to content

Commit

Permalink
Dockerfile: use wolfi-base as build image
Browse files Browse the repository at this point in the history
This allows a little more control over which version of go we're using.
  • Loading branch information
willnorris committed Aug 2, 2023
1 parent 9708b43 commit da55ece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"

RUN apk update && apk add build-base git openssh go-1.20

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
Expand Down

0 comments on commit da55ece

Please sign in to comment.