diff --git a/Dockerfile b/Dockerfile index bdf6517..3061f89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM golang:1.24 -RUN git clone https://github.com/iceBear67/bubble /bubble && cd /bubble/ && bash ./build.sh +FROM alpine/git +WORKDIR /src +RUN git clone https://github.com/iceBear67/bubble . -FROM debian:11 -COPY --from=0 /bubble/target/client /bin/bubble +FROM debian:13 +COPY --from=0 --chmod=0755 /src/bubble.sh /bin/bubble RUN <> /etc/sudoers sudo -u user mkdir -p /home/user/.config/fish/ diff --git a/init.fish b/init.fish index d40c406..26a4d1f 100644 --- a/init.fish +++ b/init.fish @@ -12,6 +12,7 @@ end function resume if test (sudo -u user tmux list-windows | wc -l) -eq 0 + cd /home/user sudo -u user tmux return end @@ -23,7 +24,8 @@ function resume sudo -u user tmux attach -t 0 end else - sudo -u user tmux new-session -c /home/user /usr/bin/fish + cd /home/user + sudo -u user tmux new-session -c /usr/bin/fish end end