dev-containers/devel-base/Dockerfile

14 lines
933 B
Docker

FROM docker.io/library/rust:1-bookworm as RUST_BUILD
RUN apt-get update -y && apt-get install cmake -y &&\
cargo install starship --locked &&\
cargo install eza --locked
FROM docker.io/debian:trixie
ARG USER="developer"
RUN apt-get update -y && apt-get install -y build-essential curl git && apt-get clean && for dir in apt dpkg;do rm -r /var/lib/$dir;done &&\
useradd -u 1000 -mU -s $(which bash) $USER &&\
runuser -l $USER -c 'mkdir /home/$USER/.config && curl -fsSLo /home/$USER/.config/starship.toml https://dev.cat-enby.club/Nikurasu/dotfiles/raw/branch/main/starship/starship.toml' &&\
echo 'eval "$(starship init bash)"' >> /home/$USER/.bashrc &&\
curl -fsSL https://dev.cat-enby.club/Nikurasu/dotfiles/raw/branch/main/shell/alias/eza >> /home/$USER/.bashrc
COPY --from=RUST_BUILD /usr/local/cargo/bin/starship /usr/local/bin/starship
COPY --from=RUST_BUILD /usr/local/cargo/bin/eza /usr/local/bin/eza