From 4e5a69e5fb742dde4f755b7f56aee2aea76e19bf Mon Sep 17 00:00:00 2001 From: Joona Hoikkala <5235109+joohoi@users.noreply.github.com> Date: Thu, 5 Feb 2026 18:09:31 +0200 Subject: [PATCH] Fix errors in auto-released docker images (#399) --- .goreleaser.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9f68c51..e04bb91 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,7 @@ builds: - binary: acme-dns env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 goos: - linux goarch: diff --git a/Dockerfile b/Dockerfile index fb8fef7..3ba48a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM golang:alpine AS builder LABEL maintainer="joona@kuori.org" -RUN apk add --update gcc musl-dev git +RUN apk add --update git ENV GOPATH /tmp/buildcache RUN git clone https://github.com/joohoi/acme-dns /tmp/acme-dns WORKDIR /tmp/acme-dns -RUN CGO_ENABLED=1 go build +RUN CGO_ENABLED=0 go build FROM alpine:latest