From b9fdfb584bc339ecfc26e835b3f9aad7c1cfe31c Mon Sep 17 00:00:00 2001 From: user-penguin Date: Sun, 19 May 2024 17:40:45 +0700 Subject: [PATCH] test-3 --- .drone.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index cfc1b3d..8fcfce2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ steps: - name: build image: golang commands: - - go build -o cake_crm cmd/cake_crm/main.go + - go build GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o cake_crm cmd/cake_crm/main.go - name: test image: golang diff --git a/Dockerfile b/Dockerfile index fbd2a5b..ba711ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM alpine:latest RUN apk add --no-cache ca-certificates COPY cake_crm /usr/local/bin/cake_crm RUN chmod +x /usr/local/bin/cake_crm -CMD ["cake_crm"] +CMD ["/usr/local/bin/cake_crm"] \ No newline at end of file