Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
garanews authored Jul 31, 2024
1 parent 5061ce6 commit 02d552c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compose/local/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,20 @@ RUN python setup.py build

FROM common-base AS go-builder
ARG TARGETPLATFORM
RUN apt-get update && apt-get install -y curl gcc-aarch64-linux-gnu gcc-multilib
RUN apt-get update && apt-get install -y curl
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 \
&& tar -C /usr/local -xzf go.tar.gz \
&& rm go.tar.gz \
&& git clone https://github.com/volatilityfoundation/dwarf2json.git \
&& cd dwarf2json \
&& CC="gcc -m64" /usr/local/go/bin/go build; \
&& /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; \
Expand Down

0 comments on commit 02d552c

Please sign in to comment.