forked from FISCO-BCOS/FISCO-BCOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix docker build of action and support arm images
- Loading branch information
1 parent
5556923
commit 0b2dc39
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ LABEL maintainer [email protected] | |
WORKDIR / | ||
|
||
ARG SOURCE_BRANCH | ||
ARG TARGETARCH | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
SOURCE=${SOURCE_BRANCH:-master} | ||
SOURCE=${SOURCE_BRANCH:-master-2.0} | ||
|
||
RUN apt-get -q update && apt-get install -qy --no-install-recommends \ | ||
git clang make build-essential cmake libssl-dev zlib1g-dev ca-certificates \ | ||
|
@@ -16,7 +18,7 @@ RUN apt-get -q update && apt-get install -qy --no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git clone https://github.com/FISCO-BCOS/FISCO-BCOS.git && cd FISCO-BCOS \ | ||
&& git checkout ${SOURCE} && cmake . && make -j2 && strip bin/fisco-bcos | ||
&& git checkout ${SOURCE} && if [[ "${TARGETARCH}" != "amd64" ]]; then cmake . ;else cmake -DARCH_NATIVE=on .;fi && make -j2 && strip bin/fisco-bcos | ||
|
||
FROM ubuntu:18.04 | ||
LABEL maintainer [email protected] | ||
|