0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

Dockerfile: use wolfi-base as build image

This allows a little more control over which version of go we're using.
This commit is contained in:
Will Norris 2023-08-02 08:42:28 -07:00
parent 9708b430f5
commit da55ecefd3

View file

@ -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 <will@willnorris.com>"
RUN apk update && apk add build-base git openssh go-1.20
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download