diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c6541f2..24a75b7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -10,7 +10,7 @@ builds: ldflags: - -s -w -X github.com/hyper-tuner/cloud-backend.Version={{ .Version }} env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 goos: - linux - windows diff --git a/Dockerfile b/Dockerfile index 7c32126..4791277 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN mkdir /app COPY . /app WORKDIR /app -RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o cloud-backend +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o cloud-backend FROM alpine:latest AS production