install mise from script (#392)

This commit is contained in:
Jake Runzer
2025-12-18 22:03:42 -05:00
committed by GitHub
parent 073ca05b1a
commit c1e2b0703c
+11 -6
View File
@@ -5,12 +5,17 @@ RUN apt-get update && apt-get install -y \
git \
pkg-config \
libssl-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --branch v2025.12.12 --depth 1 https://github.com/jdx/mise.git /tmp/mise && \
cd /tmp/mise && \
# RUSTFLAGS="-C opt-level=z -C link-arg=-s -C codegen-units=1" \
cargo build --profile release \
--config debuginfo=0
# RUN git clone --branch v2025.12.12 --depth 1 https://github.com/jdx/mise.git /tmp/mise && \
# cd /tmp/mise && \
# # RUSTFLAGS="-C opt-level=z -C link-arg=-s -C codegen-units=1" \
# cargo build --profile release \
# --config debuginfo=0
RUN cp /tmp/mise/target/release/mise /usr/local/bin/
RUN curl https://mise.run | sh \
&& /root/.local/bin/mise --version \
&& mv /root/.local/bin/mise /usr/local/bin/
# RUN cp /tmp/mise/target/release/mise /usr/local/bin/