feat: Updates readme, adds ci to build image when pushed.
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 6m35s

This commit is contained in:
2025-11-12 12:16:16 -05:00
parent 56e7088899
commit 1625e8b380
4 changed files with 132 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
FROM swift:latest
FROM docker.io/swift:latest AS build
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt-get -q update \
@@ -6,10 +6,38 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt-get install -y \
cmake \
rustup \
tmux
&& rm -rf /var/lib/apt/lists/*
RUN userdel --remove ubuntu && \
rustup default stable && \
RUN rustup default stable && \
cargo install --git https://github.com/MordechaiHadad/bob.git && \
/root/.cargo/bin/bob install nightly && \
/root/.cargo/bin/bob use nightly
FROM docker.io/swift:latest
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt-get -q update \
&& apt-get -q dist-upgrade -y \
&& apt-get install -y \
cmake \
curl \
git \
just \
tmux \
tree-sitter-cli \
wget \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /root/.cargo/bin/bob /root/bin/bob
COPY --from=build /root/.local/share/bob /root/.local/share/bob
RUN cat >> /root/.bashrc <<EOF
PATH="/root/bin:/root/.local/share/bob/nvim-bin:$PATH"
alias n='nvim'
EOF
WORKDIR /root/dev
VOLUME /root/dev
CMD /bin/bash