-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.ubuntu.s390x
21 lines (20 loc) · 1.21 KB
/
Dockerfile.ubuntu.s390x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:noble
ARG TARGETPLATFORM
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.utf8
RUN dpkg --add-architecture s390x && \
rm /etc/apt/sources.list.d/ubuntu.sources && \
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse" > /etc/apt/sources.list && \
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble-security main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb [arch=s390x] http://ports.ubuntu.com/ noble main universe restricted" >> /etc/apt/sources.list && \
echo "deb [arch=s390x] http://ports.ubuntu.com/ noble-updates main universe restricted" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y locales && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
apt-get install --no-install-recommends -y \
meson pkg-config ca-certificates git qemu-user-static \
gcc-s390x-linux-gnu libc-dev:s390x libjson-c-dev:s390x \
xz-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*