Disable CGO
This commit is contained in:
parent
07fcf37f61
commit
dbfe8fe4ea
|
@ -10,7 +10,7 @@ builds:
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X github.com/hyper-tuner/cloud-backend.Version={{ .Version }}
|
- -s -w -X github.com/hyper-tuner/cloud-backend.Version={{ .Version }}
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
- windows
|
- windows
|
||||||
|
|
|
@ -4,7 +4,7 @@ RUN mkdir /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /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
|
FROM alpine:latest AS production
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue