更改基础镜像

master
Administrator 2024-05-02 15:30:12 +08:00
parent 7e138977b1
commit 8fa946e75a
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:latest FROM 192.168.8.125:30016/golang/golang:1.22.2
USER root USER root
RUN apk --no-cache add tzdata RUN apk --no-cache add tzdata
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai

View File

@ -29,7 +29,7 @@ _/ ____\______ ____ _____ _____ ____ __ _ _______ ____ ____
flag.BoolVar(&liveMode, "livemode", false, "即时模式关闭") flag.BoolVar(&liveMode, "livemode", false, "即时模式关闭")
flag.Parse() flag.Parse()
if !liveMode { if !liveMode {
fmt.Println("目前定时任务模式") fmt.Println("目前定时任务模式")
if maxRetries < 3 { if maxRetries < 3 {
for { for {
remainingTime := tools.RemainingTimeUntilNextFriday17() remainingTime := tools.RemainingTimeUntilNextFriday17()
@ -48,7 +48,7 @@ _/ ____\______ ____ _____ _____ ____ __ _ _______ ____ ____
log.Fatalln("最大重试次数已到达3退出") log.Fatalln("最大重试次数已到达3退出")
} }
} else { } else {
fmt.Println("目前即时任务模式") fmt.Println("目前即时任务模式")
job() job()
} }