From 670f5d21faf14fcd275c66af7a7d2aaa9ca8b8b9 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 22 Apr 2024 21:46:24 +0800 Subject: [PATCH] refactor --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1cb3690fd..eda24096c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ COPY . . RUN go install github.com/magefile/mage@latest # Execute the build command using Mage -#RUN mage build +RUN mage build # Use Alpine Linux as the final base image due to its small size and included utilities FROM alpine:latest @@ -33,7 +33,7 @@ ENV OPENIM_SERVER_DIR=/openim-server RUN apk add --no-cache bash # Copy the compiled binaries and mage from the builder image to the final image -#COPY --from=builder $OPENIM_SERVER_DIR/_output $OPENIM_SERVER_DIR/_output +COPY --from=builder $OPENIM_SERVER_DIR/_output $OPENIM_SERVER_DIR/_output COPY --from=builder /go/bin/mage /usr/local/bin/mage COPY --from=builder $OPENIM_SERVER_DIR/magefile_windows.go $OPENIM_SERVER_DIR/ COPY --from=builder $OPENIM_SERVER_DIR/magefile_unix.go $OPENIM_SERVER_DIR/