Skip to content

Commit

Permalink
feature: multiple make jobs in dockerfile (OpenAtomFoundation#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelai authored Jan 27, 2021
1 parent 031fac9 commit 39d389d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ COPY . ${PIKA_BUILD_DIR}
WORKDIR ${PIKA_BUILD_DIR}

RUN rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm && \
yum clean all && \
yum -y makecache && \
yum -y install snappy-devel && \
yum -y install protobuf-devel && \
Expand All @@ -24,7 +25,7 @@ RUN rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm &&
yum -y install make && \
yum -y install which && \
yum -y install git && \
make && \
make -j$(shell grep -c ^processor /proc/cpuinfo 2>/dev/null) && \
cp -r ${PIKA_BUILD_DIR}/output ${PIKA} && \
cp -r ${PIKA_BUILD_DIR}/entrypoint.sh ${PIKA} && \
yum -y remove gcc-c++ && \
Expand Down

0 comments on commit 39d389d

Please sign in to comment.