ADD rootfs.tar.xz / # buildkit |
CMD ["bash"] |
ARG USER=developer |
RUN |1 USER=developer /bin/sh -c 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 # buildkit |
COPY /usr/local/cargo/bin/starship /usr/local/bin/starship # buildkit |
COPY /usr/local/cargo/bin/eza /usr/local/bin/eza # buildkit |
COPY /usr/local/cargo/bin/zoxide /usr/local/bin/zoxide # buildkit |
ARG NODE_VERSION=20.12.0 |
ARG USER=developer |
RUN |2 NODE_VERSION=22.11.0 USER=developer /bin/sh -c curl -fsSLO https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz && tar -xJf node-v$NODE_VERSION-linux-x64.tar.xz && for dir in lib share include bin;do cp -r node-v$NODE_VERSION-linux-x64/$dir /usr;done && rm -r node-v$NODE_VERSION-linux-x64 node-v$NODE_VERSION-linux-x64.tar.xz # buildkit |