Skip to content

Commit fdc1652

Browse files
committed
Dockerfile: use golang:latest for dwarf2json
1 parent 9d5c816 commit fdc1652

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
ARG REGISTRY="docker.io"
2+
FROM ${REGISTRY}/golang:latest AS go
3+
RUN git clone --depth 1 https://github.com/volatilityfoundation/dwarf2json.git \
4+
&& cd dwarf2json \
5+
&& go build
6+
27
FROM ${REGISTRY}/ubuntu:22.04 AS base
38
RUN apt-get update && apt-get -y install \
49
build-essential git wget libncurses-dev bc curl \
@@ -9,6 +14,7 @@ RUN apt-get update && apt-get -y install \
914
RUN wget https://github.com/volatilityfoundation/dwarf2json/releases/download/v0.9.0/dwarf2json-linux-amd64 -O /bin/dwarf2json && \
1015
chmod +x /bin/dwarf2json
1116
RUN mkdir -p /opt/cross && echo '#!/bin/sh' > /opt/cross/setup-cross.sh && chmod +x /opt/cross/setup-cross.sh
17+
COPY --from=go /go/dwarf2json/dwarf2json /bin/dwarf2json
1218

1319
# i686
1420
FROM base AS i686

0 commit comments

Comments
 (0)