docker-asdf/Dockerfile
2023-09-23 14:20:18 -05:00

20 lines
655 B
Docker

FROM debian:bookworm
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y tini git curl
RUN git clone https://github.com/asdf-vm/asdf.git /root/.asdf --branch v0.13.1
RUN echo "source /root/.asdf/asdf.sh" >> /root/.bashrc
RUN echo "source /root/.asdf/completions/asdf.bash" >> /root/.bashrc
RUN chsh root -s /bin/bash
SHELL ["/bin/bash", "-lc"]
RUN echo -n "bun purescript spago python rust" | xargs -d " " -I{} asdf plugin add {}
ENTRYPOINT ["/usr/bin/tini", "--"]