2025-06-24 17:20:53 -07:00
|
|
|
FROM ubuntu:24.04
|
2025-06-05 20:29:46 -07:00
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
# enable 'universe' because musl-tools & clang live there
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
|
software-properties-common && \
|
|
|
|
|
add-apt-repository --yes universe
|
|
|
|
|
|
|
|
|
|
# now install build deps
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
|
build-essential curl git ca-certificates \
|
2025-06-24 17:20:53 -07:00
|
|
|
pkg-config clang musl-tools libssl-dev just && \
|
2025-06-05 20:29:46 -07:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2025-06-24 17:20:53 -07:00
|
|
|
# Ubuntu 24.04 ships with user 'ubuntu' already created with UID 1000.
|
|
|
|
|
USER ubuntu
|
2025-06-05 20:29:46 -07:00
|
|
|
|
|
|
|
|
# install Rust + musl target as dev user
|
|
|
|
|
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal && \
|
2025-06-24 17:05:36 -07:00
|
|
|
~/.cargo/bin/rustup target add aarch64-unknown-linux-musl && \
|
|
|
|
|
~/.cargo/bin/rustup component add clippy rustfmt
|
2025-06-05 20:29:46 -07:00
|
|
|
|
2025-06-24 17:20:53 -07:00
|
|
|
ENV PATH="/home/ubuntu/.cargo/bin:${PATH}"
|
2025-06-05 20:29:46 -07:00
|
|
|
|
|
|
|
|
WORKDIR /workspace
|