From 5bc6c5ff5bff7b1f2d3f9977ecbdfc69727912bc Mon Sep 17 00:00:00 2001 From: Ayaka Neko Date: Sun, 30 Apr 2023 20:59:08 +0800 Subject: [PATCH] chore: update Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7a7096f..6d69dca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ COPY . /app/insights-bot # 切换到 /app/insights-bot 目录 WORKDIR /app/insights-bot +# Build RUN go env RUN go env -w CGO_ENABLED=0 RUN go mod download @@ -27,6 +28,8 @@ RUN go build -a -o "release/insights-bot" "github.com/nekomeowww/insights-bot/cm # 设定运行步骤所使用的镜像为基于 Debian 发行版镜像 FROM debian as runner +RUN apt update && apt upgrade -y && apt install -y ca-certificates + COPY --from=builder /app/insights-bot/release/insights-bot /usr/local/bin/ # 入点是编译好的应用程序