Update Dockerfile

pull/3743/head
s22527119-star 3 days ago committed by GitHub
parent 1036e81eb4
commit 19cd1e090d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
@ -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…
Cancel
Save