aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-05-09 07:45:15 +0530
committerBobby <[email protected]>2025-05-09 07:45:15 +0530
commitacd78337a2ca21810d80ddee5e32d29520ebfda9 (patch)
tree8dbd779d2d06a42330c3393ded7751084788523f /Dockerfile
parent5f37820667e666eaa5d36c9634b6fd9108d2237e (diff)
downloadmetachan-acd78337a2ca21810d80ddee5e32d29520ebfda9.tar.xz
metachan-acd78337a2ca21810d80ddee5e32d29520ebfda9.zip
enable CGO in Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 1c7a1a7..f77362a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,10 @@
-FROM golang:1.24-alpine AS builder
+FROM golang:1.24 AS builder
WORKDIR /metachan
-RUN apk add --no-cache git make
+RUN apt-get update && apt-get install -y gcc libc6-dev make git
+
+ENV CGO_ENABLED=1
COPY go.mod go.sum* ./
RUN go mod download
@@ -18,4 +20,4 @@ RUN apk --no-cache add ca-certificates tzdata
COPY --from=builder /metachan/bin/metachan .
-CMD ["./metachan"] \ No newline at end of file
+CMD ["./metachan"]