diff --git a/Dockerfile b/Dockerfile index 35f0496..eca89d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,13 @@ FROM quay.io/almalinux/almalinux:9 AS compile-image ENV SHADOWSOCKS_VER=1.20.1 ENV V2RAY_PLUGIN_VER=1.3.2 +ENV RUST_VER=1.79.0 WORKDIR /root RUN set -ex && dnf upgrade -y && dnf install -y binutils wget make gcc xz -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=${RUST_VER} -y RUN wget https://github.com/shadowsocks/shadowsocks-rust/archive/refs/tags/v${SHADOWSOCKS_VER}.tar.gz RUN tar -xf v${SHADOWSOCKS_VER}.tar.gz