Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions build/images/openim-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN go mod tidy
RUN if [ "$RELEASE" = "true" ]; then \
go build -trimpath -ldflags "-s -w" -o _output/${BINARY_NAME} ./${CMD_PATH}; \
else \
go build -o _output/${BINARY_NAME} ./${CMD_PATH}; \
fi
RUN go build -o myapp ./cmd/open-im-api

FROM alpine:latest

Expand All @@ -27,4 +26,4 @@ WORKDIR $SERVER_DIR

COPY --from=builder $SERVER_DIR/_output $SERVER_DIR/_output

ENTRYPOINT ["sh", "-c", "_output/${BINARY_NAME}"]
ENTRYPOINT ["sh", "-c", "_output/${BINARY_NAME}"]
Loading