forked from OwO-Network/DeepLX
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |