mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 11:42:33 +08:00
fix: dockerfile
This commit is contained in:
parent
a9a5a914b6
commit
56755a1b92
|
@ -2,13 +2,7 @@
|
|||
|
||||
FROM golang:1.22 AS builder
|
||||
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
||||
COPY main.go ./
|
||||
COPY types.go ./
|
||||
COPY utils.go ./
|
||||
COPY config.go ./
|
||||
COPY translate.go ./
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
COPY . .
|
||||
RUN go get -d -v ./
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user