diff --git a/cmd/vali/Dockerfile b/cmd/vali/Dockerfile index e7cd18cf..87ee73cd 100644 --- a/cmd/vali/Dockerfile +++ b/cmd/vali/Dockerfile @@ -4,6 +4,7 @@ FROM golang:1.21.5-alpine3.19 as build ARG TOUCH_PROTOS COPY . /src/vali WORKDIR /src/vali +RUN apk add --no-cache make RUN make clean && (if [ "${TOUCH_PROTOS}" ]; then make touch-protos; fi) && make BUILD_IN_CONTAINER=false vali FROM alpine:3.19 diff --git a/cmd/vali/Dockerfile.cross b/cmd/vali/Dockerfile.cross index d37d1a8b..13768898 100644 --- a/cmd/vali/Dockerfile.cross +++ b/cmd/vali/Dockerfile.cross @@ -10,6 +10,7 @@ FROM --platform=linux/amd64 $BUILD_IMAGE as build COPY --from=goenv /goarch /goarm / COPY . /src/vali WORKDIR /src/vali +RUN apk add --no-cache make RUN make clean && GOARCH=$(cat /goarch) GOARM=$(cat /goarm) make BUILD_IN_CONTAINER=false vali FROM alpine:3.19 diff --git a/cmd/vali/Dockerfile.debug b/cmd/vali/Dockerfile.debug index c8f861ed..5a7d2357 100644 --- a/cmd/vali/Dockerfile.debug +++ b/cmd/vali/Dockerfile.debug @@ -6,6 +6,7 @@ FROM ghcr.io/credativ/vali-build-image as build ARG GOARCH="amd64" COPY . /src/vali WORKDIR /src/vali +RUN apk add --no-cache make RUN make clean && make BUILD_IN_CONTAINER=false vali-debug FROM alpine:3.19