订单查询更新

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

View File

@ -23,6 +23,10 @@
# 创建最终镜像用于运行编译后的Go程序 # 创建最终镜像用于运行编译后的Go程序
FROM alpine FROM alpine
#设置时区
ENV TimeZone=Asia/Shanghai
# 使用软连接,并且将时区配置覆盖/etc/timezone
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
WORKDIR /app WORKDIR /app
# 将编译好的二进制文件从构建阶段复制到运行阶段 # 将编译好的二进制文件从构建阶段复制到运行阶段
@ -32,8 +36,6 @@ WORKDIR /app
COPY /server . COPY /server .
#COPY --from=builder /app/server . #COPY --from=builder /app/server .
COPY .env . COPY .env .
#设置时区
ENV TimeZone=Asia/Shanghai
#RUN chmod +x /app/server #RUN chmod +x /app/server
# 设置环境变量的默认值 # 设置环境变量的默认值
ENV SERVER=api ENV SERVER=api