diff --git a/go/arm/Dockerfile.tmpl b/go/arm/Dockerfile.tmpl index 7135473c..96c08094 100644 --- a/go/arm/Dockerfile.tmpl +++ b/go/arm/Dockerfile.tmpl @@ -41,8 +41,6 @@ RUN apt install -y \ RUN apt install -y \ librpm-dev:arm64 -# For Debian 11 libsystemd-dev must be 247.3-7+deb11u4 because of preinstalled libsystemd0:247.3-7+deb11u4 -# See https://github.com/elastic/golang-crossbuild/pull/316 RUN apt install -y \ libsystemd-dev:arm64 {{- end }} @@ -88,10 +86,8 @@ RUN apt install -y \ RUN apt install -y \ librpm-dev -# For Debian 11 libsystemd-dev must be 247.3-7+deb11u4 because of preinstalled libsystemd0:247.3-7+deb11u4 -# See https://github.com/elastic/golang-crossbuild/pull/316 RUN apt install -y \ - libsystemd-dev{{- if eq .DEBIAN_VERSION "11"}}=247.3-7+deb11u4{{- end }} + libsystemd-dev {{- end }} # Declare TARGETARCH to make it available diff --git a/go/main/Dockerfile.tmpl b/go/main/Dockerfile.tmpl index fcadadea..12192837 100644 --- a/go/main/Dockerfile.tmpl +++ b/go/main/Dockerfile.tmpl @@ -27,10 +27,8 @@ RUN apt install -y --no-install-recommends --allow-unauthenticated\ libxml2-dev \ libsqlite3-dev -# For Debian 11 libsystemd-dev must be 247.3-7+deb11u4 because of preinstalled libsystemd0:247.3-7+deb11u4 -# See https://github.com/elastic/golang-crossbuild/pull/316 RUN apt install -y --no-install-recommends --allow-unauthenticated\ - libsystemd-dev{{- if eq .DEBIAN_VERSION "11" }}=247.3-7+deb11u4{{- end }} + libsystemd-dev {{- end }} {{- if or (eq .DEBIAN_VERSION "9") (eq .DEBIAN_VERSION "10") (eq .DEBIAN_VERSION "11") (eq .DEBIAN_VERSION "12")}}