feat(devel-base): split up into multiple files
This commit is contained in:
parent
5b76ea851e
commit
422bab9f1c
2 changed files with 16 additions and 4 deletions
14
devel-base/Dockerfile
Normal file
14
devel-base/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
|
@ -1,10 +1,8 @@
|
|||
FROM docker.io/debian:trixie
|
||||
FROM dev.cat-enby.club/cat-enby-club/devel-base:latest
|
||||
ARG NODE_VERSION="20.12.0"
|
||||
ARG PNPM_VERSION="8.15.5"
|
||||
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 &&\
|
||||
curl -fsSLO https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz &&\
|
||||
RUN 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 &&\
|
Loading…
Reference in a new issue