Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Apr 30, 2023
1 parent 0609c56 commit 5bc6c5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/

# 入点是编译好的应用程序
Expand Down

0 comments on commit 5bc6c5f

Please sign in to comment.