Skip to content

Commit

Permalink
fix: go-sqlite breakes apps, need CGO_ENABLED=1
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSin9h committed Jan 4, 2024
1 parent 52ba34c commit 7d2abdd
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 @@ -8,7 +8,7 @@ before:

builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
- MELTCD_HOST=0.0.0.0
ldflags:
- -s -w -X github.com/meltred/meltcd/version.Version={{ .Version }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build -o meltcd-bin main.go
RUN CGO_CFLAGS="-D_LARGEFILE64_SOURCE" CGO_ENABLED=1 go build -o meltcd-bin main.go

# Runtime
FROM alpine:latest
Expand Down

0 comments on commit 7d2abdd

Please sign in to comment.