订单查询更新

This commit is contained in:
wuchao 2024-06-27 15:25:27 +08:00
parent a873662d5e
commit ad134121c9
1 changed files with 4 additions and 4 deletions

View File

@ -22,11 +22,11 @@
#RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o server main.go
# 创建最终镜像用于运行编译后的Go程序
FROM alpine
FROM golang:1.21.0 as host
#设置时区
ENV TimeZone=Asia/Shanghai
# 使用软连接,并且将时区配置覆盖/etc/timezone
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
# 复制宿主机的时区文件到容器内
COPY --from=host /etc/timezone /etc/timezone
COPY --from=host /etc/localtime /etc/localtime
WORKDIR /app
# 将编译好的二进制文件从构建阶段复制到运行阶段