From 141512b847a56635e7789f8f5806708ea70ce85c Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 8 May 2024 16:20:52 +0800 Subject: [PATCH] :whale: --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index dd4e5ad..bb082ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ RUN apk add upx WORKDIR /build COPY . . - +# sqlite必须 +ENV CGO_ENABLED=1 ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct @@ -21,6 +22,6 @@ RUN mkdir -p db COPY --from=build /build/app /app COPY --from=build /build/template/* /app/template/ -RUN ls -al /app/ | grep 'app' +RUN ls -al ENTRYPOINT ["./app"] \ No newline at end of file