From f299ac2abda94841413f4f1b8bec6e27e90d7c49 Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Wed, 7 Aug 2024 14:24:59 +0200 Subject: [PATCH] use go image to build dwarf2json --- compose/local/django/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compose/local/django/Dockerfile b/compose/local/django/Dockerfile index aa1f5d46..ce323516 100644 --- a/compose/local/django/Dockerfile +++ b/compose/local/django/Dockerfile @@ -34,10 +34,9 @@ RUN apt-get update \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ && rm -rf /var/lib/apt/lists/* -FROM base-builder as go-builder +FROM golang:alpine3.20 as go-builder +RUN apk add git WORKDIR / -RUN curl https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz --output go1.22.0.linux-amd64.tar.gz \ - && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz RUN git clone https://github.com/volatilityfoundation/dwarf2json.git WORKDIR /dwarf2json RUN /usr/local/go/bin/go build