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"]