# Support Ubuntu 20.04 and glibc >=2.31.
FROM ubuntu:20.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
curl
# Install Rust toolchain.
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /root/build