Disable CGO
This commit is contained in:
parent
07fcf37f61
commit
dbfe8fe4ea
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue