aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"]