From 8fc07f2cd2c6f707e9feecb01f3852737c7530ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E4=BD=9C=E6=AC=A2?= Date: Fri, 3 Nov 2023 11:23:48 +0800 Subject: [PATCH] :whale: --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ddd1323..2d6869b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang as build +FROM golang:alpine as build WORKDIR /build @@ -7,12 +7,14 @@ COPY . . ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct -RUN go mod download +RUN go mod download && go build -o app -RUN go build -o app +RUN ls -lh && chmod +x ./app FROM alpine COPY --from=build /build/app /bin +RUN ls -lh + ENTRYPOINT ["/bin/app"] \ No newline at end of file