mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2025-04-19 06:03:25 +00:00
fix: 增加时区配置
修复默认时区问题
This commit is contained in:
parent
93a3204eab
commit
b65cc6231c
@ -13,6 +13,12 @@ RUN go get -d -v ./
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
RUN apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||
&& echo ${TZ} > /etc/timezone \
|
||||
&& apk del tzdata
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
||||
CMD ["/app/deeplx"]
|
||||
|
Loading…
Reference in New Issue
Block a user