diff --git a/Dockerfile b/Dockerfile index 8427822d..645127a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,7 +83,6 @@ RUN --mount=type=cache,target=/root/.cache/uv \ COPY /brewman ./ COPY --from=builder /frontend/browser /app/frontend -RUN ls -lah # Sync the project # Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers diff --git a/Makefile b/Makefile index 70e35379..d22f323a 100644 --- a/Makefile +++ b/Makefile @@ -23,3 +23,14 @@ build-check: ## Multi-arch build without push (compile check). Usage: make build --pull \ --build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BREWMAN=$(TAG) \ https://git.tanshu.com/tanshu/brewman.git#v$(TAG) + +.PHONY: build-check-local +build-check-local: ## Multi-arch build without push (compile check). Usage: make build-check TAG=15.4.0 + @echo "Building image..." + @podman manifest rm brewman:test 2>/dev/null || true + @podman build \ + --platform linux/amd64 \ + --manifest brewman:test \ + --no-cache \ + --build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BREWMAN=$(TAG) \ + .