From 1ca28cadae48187743902d05977efa4a73e1b56d Mon Sep 17 00:00:00 2001 From: mol Date: Fri, 26 Jan 2024 03:06:43 +0000 Subject: [PATCH] feat: test --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7887335..f303bd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ ARG PROXY # ENV http_proxy=${PROXY} # 安装基础工具与配置文件 -RUN export http_proxy=$http_proxy && \ - export https_proxy=$https_proxy && \ +RUN export http_proxy=${PROXY} && \ + export https_proxy=${PROXY} && \ apt-get update && \ # 安装 curl apt-get install -y curl && \ @@ -28,10 +28,10 @@ RUN export http_proxy=$http_proxy && \ touch info.log # 安装 node 环境 -RUN export http_proxy=$http_proxy && \ - export https_proxy=$https_proxy && \ +RUN export http_proxy=${PROXY} && \ + export https_proxy=${PROXY} && \ # 安装 brew - curl -ofsSL install.sh https://raw.fgit.cf/Homebrew/install/HEAD/install.sh | bash && \ + curl -ofsSL install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash && \ # 安装 n node 管理器 brew install n && \ # 安装最新版本 node @@ -40,16 +40,16 @@ RUN export http_proxy=$http_proxy && \ npm i -g live-server # 安装 python 环境 -RUN export http_proxy=$http_proxy && \ - export https_proxy=$https_proxy && \ +RUN export http_proxy=${PROXY} && \ + export https_proxy=${PROXY} && \ apt update && \ apt install software-properties-common && \ add-apt-repository ppa:deadsnakes/ppa && \ apt install python3.8 # 安装 docker 环境 -RUN export http_proxy=$http_proxy && \ - export https_proxy=$https_proxy && \ +RUN export http_proxy=${PROXY} && \ + export https_proxy=${PROXY} && \ apt update && \ apt install docker.io