From 8fe292ebd0459ad18244054ff54820fa3357defa Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Tue, 8 Oct 2024 10:24:43 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1a5f276..af9c922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,14 @@ 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 --no-cache tzdata \ + && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ + && echo $TZ > /etc/timezone \ + +EXPOSE 1188 + WORKDIR /app COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx CMD ["/app/deeplx"]