diff --git a/Dockerfile b/Dockerfile index be736a4..f9ff78e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]