diff --git a/compose/local/django/Dockerfile b/compose/local/django/Dockerfile index 5b6406ca..49c7853b 100644 --- a/compose/local/django/Dockerfile +++ b/compose/local/django/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1.3 ARG TARGETPLATFORM - +ARG BUILDPLATFORM FROM python:3.12-slim-bookworm AS common-base @@ -42,7 +42,7 @@ RUN python setup.py build FROM common-base AS go-builder ARG TARGETPLATFORM -RUN apt-get update && apt-get install -y curl +RUN apt-get update && apt-get install -y curl gcc-aarch64-linux-gnu RUN echo "Building for platform: $TARGETPLATFORM" \ && if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ curl -Lo go.tar.gz https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz \ @@ -50,12 +50,11 @@ RUN echo "Building for platform: $TARGETPLATFORM" \ && rm go.tar.gz \ && git clone https://github.com/volatilityfoundation/dwarf2json.git \ && cd dwarf2json \ - && /usr/local/go/bin/go build; \ + && CC=gcc /usr/local/go/bin/go build; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ curl -Lo go.tar.gz https://dl.google.com/go/go1.22.0.linux-arm64.tar.gz \ && tar -C /usr/local -xzf go.tar.gz \ && rm go.tar.gz \ - && apt-get install -y gcc-aarch64-linux-gnu \ && git clone https://github.com/volatilityfoundation/dwarf2json.git \ && cd dwarf2json \ && CC=aarch64-linux-gnu-gcc /usr/local/go/bin/go build; \