Skip to content

Commit

Permalink
尝试修改时区
Browse files Browse the repository at this point in the history
  • Loading branch information
luzov committed Oct 15, 2024
1 parent 9e5f136 commit 307f8b6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# 使用最新的 Ubuntu 基础镜像
FROM ubuntu:latest

# 设置环境变量
ENV TZ=Asia/Shanghai

FROM golang:1.23.2 AS builder
WORKDIR /go/src/github.com/YuCN0010/DeepLX
COPY . .
RUN go get -d -v ./
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .

FROM alpine:latest
RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai
WORKDIR /app
COPY --from=builder /go/src/github.com/YuCN0010/DeepLX/deeplx /app/deeplx
CMD ["/app/deeplx"]

0 comments on commit 307f8b6

Please sign in to comment.