From 2d151c2ac84bbff5436a4f45d8579d30bb8d48f9 Mon Sep 17 00:00:00 2001 From: JannikStreek Date: Thu, 19 Feb 2026 14:58:54 +0100 Subject: [PATCH] Fix: docker build --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6836670..257eb9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ # build stage -FROM golang:1.24-alpine AS builder +FROM golang:1.25-alpine AS builder # install git and ca-certificates (needed for fetching dependencies) -RUN apk add --no-cache git ca-certificates +RUN apk add --no-cache git ca-certificates gcc musl-dev # set working directory WORKDIR /app @@ -19,7 +19,7 @@ COPY . . # build the application # use cgo_enabled=0 to create a static binary # use -ldflags to strip debug info and reduce binary size -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o nak . +RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-w -s" -o nak . # runtime stage FROM alpine:latest