From ad86e8671caa62e2c0dc2fa2c00c0a48a3a0c18c Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 13 Apr 2024 10:59:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- wwwroot/bunfig.toml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 wwwroot/bunfig.toml diff --git a/Dockerfile b/Dockerfile index c660fea..12b80a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ COPY . /build RUN CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o watcher ./main FROM oven/bun:1 as front +ARG HTTP_PROXY=http://192.168.31.55:10809 +ARG HTTPS_PROXY=http://192.168.31.55:10809 COPY . /build WORKDIR /build/wwwroot -RUN bun install -c /build/wwwroot/bunfig.toml && bun run build +RUN bun install && bun run build FROM alpine:latest ARG HTTP_PROXY=http://192.168.31.55:10809 diff --git a/wwwroot/bunfig.toml b/wwwroot/bunfig.toml deleted file mode 100644 index 7e51f12..0000000 --- a/wwwroot/bunfig.toml +++ /dev/null @@ -1,2 +0,0 @@ -[install] -registry = "https://registry.npmmirror.com/" \ No newline at end of file