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