From 948f827494928b9993d165953de692cac8b61d24 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Wed, 22 Mar 2023 20:40:28 -0800 Subject: [PATCH] drop cgo from docker file --- Dockerfile | 2 +- backend/.goreleaser.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad837d5..8734c66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ COPY ./backend . RUN go get -d -v ./... RUN rm -rf ./app/api/public COPY --from=frontend-builder /app/.output/public ./app/api/static/public -RUN CGO_ENABLED=1 GOOS=linux go build \ +RUN CGO_ENABLED=0 GOOS=linux go build \ -ldflags "-s -w -X main.commit=$COMMIT -X main.buildTime=$BUILD_TIME -X main.version=$VERSION" \ -o /go/bin/api \ -v ./app/api/*.go diff --git a/backend/.goreleaser.yaml b/backend/.goreleaser.yaml index efb6d25..56d2085 100644 --- a/backend/.goreleaser.yaml +++ b/backend/.goreleaser.yaml @@ -25,7 +25,6 @@ builds: - goos: windows goarch: "386" - archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of uname.