更改基础镜像
parent
7e138977b1
commit
8fa946e75a
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:latest
|
||||
FROM 192.168.8.125:30016/golang/golang:1.22.2
|
||||
USER root
|
||||
RUN apk --no-cache add tzdata
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
|
|
@ -29,7 +29,7 @@ _/ ____\______ ____ _____ _____ ____ __ _ _______ ____ ____
|
|||
flag.BoolVar(&liveMode, "livemode", false, "即时模式关闭")
|
||||
flag.Parse()
|
||||
if !liveMode {
|
||||
fmt.Println("目前时定时任务模式")
|
||||
fmt.Println("目前是定时任务模式")
|
||||
if maxRetries < 3 {
|
||||
for {
|
||||
remainingTime := tools.RemainingTimeUntilNextFriday17()
|
||||
|
@ -48,7 +48,7 @@ _/ ____\______ ____ _____ _____ ____ __ _ _______ ____ ____
|
|||
log.Fatalln("最大重试次数已到达3,退出")
|
||||
}
|
||||
} else {
|
||||
fmt.Println("目前时即时任务模式")
|
||||
fmt.Println("目前是即时任务模式")
|
||||
job()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue