From dbfe8fe4ea13480fcaa5c01e96cd2e8a7f5e6e6f Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Wed, 9 Nov 2022 21:56:57 +0100 Subject: [PATCH] Disable CGO --- .goreleaser.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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