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