Skip to content

Commit 3849988

Browse files
author
farhoud.m7
committed
Enhance Dockerfile by adding sqlite-dev dependency and setting CGO flags for SQLite support
1 parent beaa35f commit 3849988

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ FROM golang:1.21-alpine AS builder
44
WORKDIR /app
55

66
# Install build dependencies
7-
RUN apk add --no-cache gcc musl-dev
7+
RUN apk add --no-cache gcc musl-dev sqlite-dev
8+
9+
# Set required build flags for SQLite
10+
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
811

912
# Copy go mod and sum files
1013
COPY go.mod go.sum ./

0 commit comments

Comments
 (0)