fix: minor cleanup for makefile and dockerfile
This commit is contained in:
@@ -17,14 +17,14 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build
|
# 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
|
# Use distroless as minimal base image to package the manager binary
|
||||||
# Refer to https://github.com/GoogleContainerTools/distroless for more details
|
# Refer to https://github.com/GoogleContainerTools/distroless for more details
|
||||||
FROM gcr.io/distroless/static-debian12:nonroot
|
FROM gcr.io/distroless/static-debian12:nonroot
|
||||||
WORKDIR /project
|
WORKDIR /project
|
||||||
COPY --from=builder /project/whatsapp_backup .
|
COPY --from=builder /project/whatsapp_mcp_go .
|
||||||
|
|
||||||
USER 65532:65532
|
USER 65532:65532
|
||||||
|
|
||||||
ENTRYPOINT ["/project/whatsapp_backup"]
|
ENTRYPOINT ["/project/whatsapp_mcp_go"]
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
VERSION ?= 0.0.1
|
VERSION ?= 0.0.1
|
||||||
|
DOCKER_USER ?=
|
||||||
all: install build
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go get ./...
|
go get ./...
|
||||||
@@ -18,7 +17,4 @@ test:
|
|||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
image:
|
image:
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 -t venomdarklord/wa:v$(VERSION) --push .
|
docker buildx build --platform linux/amd64,linux/arm64 -t $(DOCKER_USER)/whatsapp-mcp-go:v$(VERSION) --push .
|
||||||
|
|
||||||
deployment:
|
|
||||||
kubectl apply -k ./manifests
|
|
||||||
|
|||||||
Reference in New Issue
Block a user