时区更新
This commit is contained in:
parent
ad134121c9
commit
ebf862c8d9
|
@ -22,11 +22,11 @@
|
|||
#RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o server main.go
|
||||
|
||||
# 创建最终镜像,用于运行编译后的Go程序
|
||||
FROM golang:1.21.0 as host
|
||||
FROM golang:1.21.0
|
||||
#设置时区
|
||||
# 复制宿主机的时区文件到容器内
|
||||
COPY --from=host /etc/timezone /etc/timezone
|
||||
COPY --from=host /etc/localtime /etc/localtime
|
||||
COPY /etc/timezone /etc/timezone
|
||||
COPY /etc/localtime /etc/localtime
|
||||
|
||||
WORKDIR /app
|
||||
# 将编译好的二进制文件从构建阶段复制到运行阶段
|
||||
|
|
Loading…
Reference in New Issue