fix: minor cleanup for makefile and dockerfile

This commit is contained in:
iamatulsingh
2026-02-22 15:06:08 +01:00
parent a47578c698
commit 54ce4d417f
2 changed files with 5 additions and 9 deletions
+3 -3
View File
@@ -17,14 +17,14 @@ RUN go mod download
COPY . .
# Build
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o whatsapp_backup main.go
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o whatsapp_mcp_go main.go
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static-debian12:nonroot
WORKDIR /project
COPY --from=builder /project/whatsapp_backup .
COPY --from=builder /project/whatsapp_mcp_go .
USER 65532:65532
ENTRYPOINT ["/project/whatsapp_backup"]
ENTRYPOINT ["/project/whatsapp_mcp_go"]
+2 -6
View File
@@ -1,6 +1,5 @@
VERSION ?= 0.0.1
all: install build
DOCKER_USER ?=
install:
go get ./...
@@ -18,7 +17,4 @@ test:
go test ./...
image:
docker buildx build --platform linux/amd64,linux/arm64 -t venomdarklord/wa:v$(VERSION) --push .
deployment:
kubectl apply -k ./manifests
docker buildx build --platform linux/amd64,linux/arm64 -t $(DOCKER_USER)/whatsapp-mcp-go:v$(VERSION) --push .