17 lines
1.1 KiB
Docker
17 lines
1.1 KiB
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 &&\
|
|
cargo install zoxide --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 && rm -r /var/lib/apt/lists/* &&\
|
|
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 &&\
|
|
echo 'eval "$(zoxide 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
|
|
COPY --from=RUST_BUILD /usr/local/cargo/bin/zoxide /usr/local/bin/zoxide
|