mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
32 lines
878 B
Docker
32 lines
878 B
Docker
FROM debian:bookworm-slim
|
|
|
|
ARG MISE_VERSION=2026.1.7
|
|
ARG TOOLS_DIR=/tools
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y --no-install-recommends install \
|
|
zstd curl git ca-certificates build-essential \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir -p ${TOOLS_DIR}/bin ${TOOLS_DIR}/config
|
|
|
|
# Mise environment variables
|
|
ENV TOOLS_DIR="${TOOLS_DIR}"
|
|
ENV MISE_DATA_DIR="${TOOLS_DIR}"
|
|
ENV MISE_CONFIG_DIR="${TOOLS_DIR}/config"
|
|
ENV MISE_CACHE_DIR="${TOOLS_DIR}/cache"
|
|
ENV MISE_INSTALL_PATH="${TOOLS_DIR}/bin/mise"
|
|
ENV PATH="${TOOLS_DIR}/bin:${TOOLS_DIR}/shims:${PATH}"
|
|
ENV MISE_GITHUB_ATTESTATIONS=false
|
|
ENV MISE_VERSION=${MISE_VERSION}
|
|
|
|
RUN curl https://mise.run | sh
|
|
|
|
COPY tools-config/mise.toml ${TOOLS_DIR}/config/mise.toml
|
|
|
|
RUN sh -c "\
|
|
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
|
|
&& mise install \
|
|
&& chmod 755 ${TOOLS_DIR}/bin/mise ${TOOLS_DIR}/shims/* \
|
|
"
|