From e38f1669dc1762a6bd5b6b8052c68a05e3ed4b23 Mon Sep 17 00:00:00 2001 From: zhushenwudi <55681140@163.com> Date: Wed, 15 Jan 2025 10:27:43 +0800 Subject: [PATCH] update Dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a7af38..a0cf3d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,17 @@ FROM docker.io/library/debian:latest AS builder # First - build +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources RUN apt update && apt install -y curl libssl-dev perl git gcc make -RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash +RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash RUN apt update && apt install -y nodejs RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal +ENV TZ=Asia/Shanghai +RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigure -f noninteractive tzdata +RUN rm -rf /etc/localtime +RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + WORKDIR /ew/ COPY ./ ./ @@ -31,7 +37,7 @@ RUN npm i && npm run build WORKDIR /ew/ -RUN . "$HOME/.cargo/env" && cargo build --release --jobs=16 +RUN . "$HOME/.cargo/env" && cargo build --release ## Second - sort stuff idk