fix: dockerfile

This commit is contained in:
Vincent Young 2024-09-16 12:08:54 -04:00
parent a9a5a914b6
commit 56755a1b92
No known key found for this signature in database
GPG Key ID: DD9998BCFD278F6A

View File

@ -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 .