1FROM ubuntu:23.10
2
3# FIXME(time): we are using an EOL release because 24.04 changes to 64-bit time
4RUN sed -i -E 's/(archive|security)\.ubuntu\.com/old-releases.ubuntu.com/g' \
5        /etc/apt/sources.list && \
6    dpkg --add-architecture i386 && \
7    apt-get update && apt-get install -y --no-install-recommends \
8        gcc-multilib make libc6-dev git curl ca-certificates libc6-i386 \
9        xz-utils patch rsync
10
11COPY install-musl.sh /
12RUN /install-musl.sh i686
13
14ENV PATH=$PATH:/musl-i686/bin:/rust/bin \
15    CC_i686_unknown_linux_musl=musl-gcc \
16    RUSTFLAGS="-L /musl-i686/lib"
17