diff --git a/Dockerfile b/Dockerfile index 8a052f53..d6ca65fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ # 使用最新的 Ubuntu 基础镜像 FROM ubuntu:latest -# 安装 tzdata 包 -RUN apt-get update && \ - apt-get install -y tzdata && \ - ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo 'Asia/Shanghai' > /etc/timezone +# 设置环境变量 +ENV TZ=Asia/Shanghai FROM golang:1.23.2 AS builder WORKDIR /go/src/github.com/YuCN0010/DeepLX