Skip to content

Commit

Permalink
Disable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
karniv00l committed Nov 9, 2022
1 parent 07fcf37 commit dbfe8fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dbfe8fe

Please sign in to comment.