diff --git a/Dockerfile b/Dockerfile index 73f5045..484e56f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM docker.io/golang:1.25 as build +ARG VERSION + WORKDIR /app COPY go.mod go.sum ./ diff --git a/Makefile b/Makefile index 99070a0..f3df1fd 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ clean: .PHONY: docker docker: - docker build -t $(IMAGE_NAME) . + docker build --build-arg VERSION=$(VERSION) -t $(IMAGE_NAME) . @echo built image $(IMAGE_NAME) .PHONY: docs-serve