File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
support/rust-build/x86_64-unknown-linux-gnu Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,23 @@ FROM ubuntu:22.04
33ENV DEBIAN_FRONTEND=noninteractive
44ENV LC_ALL=C.UTF-8
55ENV LANG=C.UTF-8
6- RUN apt-get update \
7- && apt-get install -y vim nano git curl gcc ninja-build cmake libudev-dev python3 python3-pip libusb-1.0-0 libssl-dev \
6+
7+ # The following block of commands are order sensitive!
8+ # update _must_ come before adding declaring to dpkg we want amd64 packages else it fails
9+ # we update before and after adding the arch to ensure we have the latest package lists
10+ # this block ensures x86 dependencies are there for rosetta to use during various build steps
11+ RUN apt-get update
12+ RUN echo '\
13+ deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse\n \
14+ deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse\n \
15+ deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse\n \
16+ deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse\n \
17+ ' >> /etc/apt/sources.list
18+ RUN apt-get update
19+ RUN dpkg --add-architecture amd64
20+ RUN apt-get install libc6:amd64 -y
21+
22+ RUN apt-get install -y vim nano git curl gcc ninja-build cmake libudev-dev python3 python3-pip libusb-1.0-0 libssl-dev \
823 pkg-config libtinfo5 \
924 gcc-x86-64-linux-gnu \
1025 g++-x86-64-linux-gnu
You can’t perform that action at this time.
0 commit comments