19 lines
637 B
Docker
19 lines
637 B
Docker
FROM alpine/git
|
|
WORKDIR /src
|
|
RUN git clone https://github.com/iceBear67/bubble .
|
|
|
|
FROM debian:13
|
|
COPY --from=0 --chmod=0755 /src/bubble.sh /bin/bubble
|
|
RUN <<EOF
|
|
apt-get update && apt-get upgrade
|
|
chmod +x /bin/bubble
|
|
apt-get install -y curl jq neovim htop fish tmux sudo git iproute2 iputils-ping dnsutils openssh-sftp-server build-essential htop
|
|
useradd -m -s /usr/bin/fish user
|
|
echo "user ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
sudo -u user mkdir -p /home/user/.config/fish/
|
|
ln -s /usr/lib/openssh/sftp-server /usr/sbin/bubble-sftp
|
|
EOF
|
|
COPY ./init.fish /init.fish
|
|
COPY --chown=user ./user.fish /home/user/.config/fish/config.fish
|
|
|