Skip to content

Commit 7bc6e3a

Browse files
committed
fix: fix sqlite build inside container
1 parent 9d0a3ad commit 7bc6e3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ RUN go env -w GOPROXY=https://proxy.golang.org && go mod download
88

99
# Copy source and build
1010
COPY . .
11-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
11+
RUN apk add --no-cache build-base sqlite-dev \
12+
&& CGO_ENABLED=1 GOOS=linux GOARCH=amd64 \
1213
go build -ldflags='-s -w' -o /out/matrix2acrobits ./main.go
1314

1415
FROM gcr.io/distroless/static:nonroot

0 commit comments

Comments
 (0)