feat: fix builde base error

This commit is contained in:
engigu
2026-02-12 17:31:37 +08:00
parent 81dfbbf0e3
commit 24daa16c77
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
FROM alpine:3.19
ENV TZ=Asia/Shanghai
ENV NODE_VERSION=22
ENV PYTHON_VERSION=3.12
ENV PATH="/app/envs/mise/shims:/app/envs/mise/bin:$PATH"
# 安装必要系统工具
@@ -12,7 +14,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re
&& curl https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh \
&& MISE_DATA_DIR=/opt/mise-base MISE_CONFIG_DIR=/opt/mise-base MISE_HTTP_TIMEOUT=300 \
PYTHON_BUILD_MIRROR_URL=https://pyenv.pages.dev/api/mirror/binaries \
(mise use -g node@22 python@3.12 || mise use -g node@22 python@3.12) \
mise use -g node@${NODE_VERSION} python@${PYTHON_VERSION} \
&& mise prune -- -f \
&& apk del $BUILD_DEPS \
&& ln -sf /usr/bin/python3 /usr/bin/python \