chore: install gomake in builder stage
Some checks failed
itom-platform auto build image / build (push) Failing after 34s
Some checks failed
itom-platform auto build image / build (push) Failing after 34s
This commit is contained in:
@@ -37,6 +37,7 @@ RUN go mod download
|
|||||||
|
|
||||||
# Install Mage to use for building the application
|
# Install Mage to use for building the application
|
||||||
RUN go install github.com/magefile/mage@v1.15.0
|
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
|
# Optionally build your application if needed
|
||||||
RUN mage build
|
RUN mage build
|
||||||
@@ -56,6 +57,7 @@ WORKDIR $SERVER_DIR
|
|||||||
COPY --from=builder $SERVER_DIR/_output $SERVER_DIR/_output
|
COPY --from=builder $SERVER_DIR/_output $SERVER_DIR/_output
|
||||||
COPY --from=builder $SERVER_DIR/config $SERVER_DIR/config
|
COPY --from=builder $SERVER_DIR/config $SERVER_DIR/config
|
||||||
COPY --from=builder /go/bin/mage /usr/local/bin/mage
|
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_windows.go $SERVER_DIR/
|
||||||
COPY --from=builder $SERVER_DIR/magefile_unix.go $SERVER_DIR/
|
COPY --from=builder $SERVER_DIR/magefile_unix.go $SERVER_DIR/
|
||||||
COPY --from=builder $SERVER_DIR/magefile.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.mod $SERVER_DIR/
|
||||||
COPY --from=builder $SERVER_DIR/go.sum $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
|
# Set the command to run when the container starts
|
||||||
ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"]
|
ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"]
|
||||||
|
|||||||
Reference in New Issue
Block a user