From b7236c580da07df7f1ae727ed6fd2db465375da9 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 28 Sep 2024 23:15:27 +0700 Subject: [PATCH] fix: Dockerfile stages name --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a81673..975cfad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM docker.io/golang:1.23 as app +FROM docker.io/golang:1.23 as build COPY src/ . RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app FROM scratch -COPY --from=app /app /app +COPY --from=build /app /app COPY static/ /static/ COPY html/ /html/ EXPOSE 3000