mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
dockerfiles: update packages for aarch64 to amd64 crosscompiles
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
d7aeaebd00
commit
6705d485cc
@ -29,13 +29,7 @@ RUN apt-get install -y \
|
|||||||
&& ln -s /usr/lib/go-1.21/bin/gofmt /usr/bin/gofmt
|
&& ln -s /usr/lib/go-1.21/bin/gofmt /usr/bin/gofmt
|
||||||
|
|
||||||
RUN if [ "$(uname -m)" = "aarch64" ]; then \
|
RUN if [ "$(uname -m)" = "aarch64" ]; then \
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' > /etc/apt/sources.list.d/amd64.list; \
|
apt-get install -y libc6-amd64-cross qemu-user-binfmt --no-install-recommends; \
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
apt-get update; \
|
|
||||||
dpkg --add-architecture amd64; \
|
|
||||||
apt-get install -y libc6:amd64 qemu-user-binfmt --no-install-recommends; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -25,13 +25,7 @@ RUN apt-get install -y \
|
|||||||
--no-install-recommends
|
--no-install-recommends
|
||||||
|
|
||||||
RUN if [ "$(uname -m)" = "aarch64" ]; then \
|
RUN if [ "$(uname -m)" = "aarch64" ]; then \
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse' > /etc/apt/sources.list.d/amd64.list; \
|
apt-get install -y libc6-amd64-cross qemu-user-binfmt --no-install-recommends; \
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
echo 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse' >> /etc/apt/sources.list.d/amd64.list; \
|
|
||||||
apt-get update; \
|
|
||||||
dpkg --add-architecture amd64; \
|
|
||||||
apt-get install -y libc6:amd64 qemu-user-binfmt --no-install-recommends; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user