1FROM ubuntu:23.10
2
3
4# FIXME(time): we are using an EOL release because 24.04 changes to 64-bit time
5RUN sed -i -E 's/(archive|security)\.ubuntu\.com/old-releases.ubuntu.com/g' \
6        /etc/apt/sources.list && \
7    dpkg --add-architecture i386 && \
8    apt-get update && apt-get install -y --no-install-recommends \
9        gcc-multilib make libc6-dev git curl ca-certificates libc6-i386
10
11COPY install-musl.sh /
12RUN sh /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