From 56755a1b9274153156b12c94edc469947bd2372c Mon Sep 17 00:00:00 2001 From: Vincent Young Date: Mon, 16 Sep 2024 12:08:54 -0400 Subject: [PATCH] fix: dockerfile --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index be736a4f..a72fc0de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .