Skip to content

Commit

Permalink
enable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 18, 2023
1 parent dcaf931 commit a3e3e8b
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 @@ -6,7 +6,7 @@ before:
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
binary: assertoor-{{.Version}}
goos:
- linux
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 @@ WORKDIR /src
COPY go.sum go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /bin/app .
RUN CGO_ENABLED=1 go build -o /bin/app .

FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit a3e3e8b

Please sign in to comment.