From 5f9df1aadeced44e11ef4a77e8795ae68d421b8e Mon Sep 17 00:00:00 2001 From: engigu Date: Tue, 23 Dec 2025 10:32:59 +0800 Subject: [PATCH] feat: adjust docker image build --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a073fff..02c33da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,9 @@ RUN sed -i 's@deb.debian.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.li && echo "${TZ}" > /etc/timezone \ && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \ && apt update \ - && apt install -y tzdata git gcc curl wget vim nodejs npm python3 python3-pip \ + && apt install -y tzdata git gcc curl wget vim nodejs npm python3 python3-venv python3-pip \ + && python3 -m venv /opt/basepy3 \ + && source /opt/basepy3/bin/activate \ && rm -rf /var/lib/apt/lists/* \ && python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple