From 145e40a43105a8a2d04c17c97e2a79ed9c11be81 Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 8 May 2024 16:52:22 +0800 Subject: [PATCH] :art: --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2b9da6..17a4255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ WORKDIR /build COPY . . # sqlite必须 -ENV CGO_ENABLED=0 +ENV CGO_ENABLED=1 ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct -RUN CGO_ENABLED=1 go build -ldflags="-s -w" -installsuffix cgo -o app && up -9 app +RUN go build -ldflags="-s -w" -installsuffix cgo -o app && up -9 app RUN ls -lh && chmod +x ./app