Disable CGO

This commit is contained in:
Piotr Rogowski 2022-11-09 21:56:57 +01:00
parent 07fcf37f61
commit dbfe8fe4ea
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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