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