Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 6m35s
44 lines
1018 B
Docker
44 lines
1018 B
Docker
FROM docker.io/swift:latest AS build
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
|
|
&& apt-get -q update \
|
|
&& apt-get -q dist-upgrade -y \
|
|
&& apt-get install -y \
|
|
cmake \
|
|
rustup \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
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
|