summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-17 07:11:50 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-17 07:11:50 +0100
commit7a4942d1e98575079e7017dd8579bfa3490f2a33 (patch)
tree642ed53c48674b2e7f1ad74347ea3ae297d6c21d /docker/Dockerfile
parenta9df163ef5d176b43a953c83a3ca4e926856cf43 (diff)
downloadvyos-build-7a4942d1e98575079e7017dd8579bfa3490f2a33.tar.gz
vyos-build-7a4942d1e98575079e7017dd8579bfa3490f2a33.zip
Docker: T2666: gcc-multilib support only available for AMD64
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 87918ce2..6bef8b49 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -448,9 +448,14 @@ RUN apt-get update && apt-get install -y \
llvm \
libelf-dev \
libpcap-dev \
- gcc-multilib \
build-essential
+# gcc-multilib is not available on arm64 but required by XDP
+RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
+ apt-get update && apt-get install -y \
+ gcc-multilib; \
+ fi
+
# Install open-vmdk
RUN wget -O /tmp/open-vmdk-master.zip https://github.com/vmware/open-vmdk/archive/master.zip && \
unzip -d /tmp/ /tmp/open-vmdk-master.zip && \