chore: install gomake in builder stage
Some checks failed
itom-platform auto build image / build (push) Failing after 34s

This commit is contained in:
kim.dev.6789
2026-01-15 17:27:00 +08:00
parent 1103da3414
commit ef4f691436

View File

@@ -37,6 +37,7 @@ RUN go mod download
# Install Mage to use for building the application
RUN go install github.com/magefile/mage@v1.15.0
RUN go install github.com/openimsdk/gomake@v0.0.15-alpha.1
# Optionally build your application if needed
RUN mage build
@@ -56,6 +57,7 @@ WORKDIR $SERVER_DIR
COPY --from=builder $SERVER_DIR/_output $SERVER_DIR/_output
COPY --from=builder $SERVER_DIR/config $SERVER_DIR/config
COPY --from=builder /go/bin/mage /usr/local/bin/mage
COPY --from=builder /go/bin/gomake /usr/local/bin/gomake
COPY --from=builder $SERVER_DIR/magefile_windows.go $SERVER_DIR/
COPY --from=builder $SERVER_DIR/magefile_unix.go $SERVER_DIR/
COPY --from=builder $SERVER_DIR/magefile.go $SERVER_DIR/
@@ -63,7 +65,5 @@ COPY --from=builder $SERVER_DIR/start-config.yml $SERVER_DIR/
COPY --from=builder $SERVER_DIR/go.mod $SERVER_DIR/
COPY --from=builder $SERVER_DIR/go.sum $SERVER_DIR/
RUN go get github.com/openimsdk/gomake@v0.0.15-alpha.1
# Set the command to run when the container starts
ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"]