From 584fbafc3a073e182bc20bf72ca53ba9571c2657 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 22 Apr 2024 17:48:32 +0800 Subject: [PATCH] refactor --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1ad0165f9..939fdebf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,9 @@ ENV GOPROXY=https://goproxy.cn,direct # Copy all files from the current directory into the container COPY . . -# Execute the script and build command, including downloading mage -RUN chmod +x ./bootstrap.sh && \ - ./bootstrap.sh && \ - mage build +RUN go install github.com/magefile/mage@latest + +RUN mage -v && mage build # Use Alpine Linux as the final base image due to its small size and included utilities FROM alpine:latest