Skip to content

Commit

Permalink
Speed up building FlashMQ with multiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiebeytec committed Feb 26, 2024
1 parent c4c1be3 commit 8af1542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y g++ make cmake libssl-dev file docbook2x
COPY flashmq .
RUN cmake -DCMAKE_BUILD_TYPE=Release && make
RUN nproc=$(nproc) && cmake -DCMAKE_BUILD_TYPE=Release && make -j "$nproc"

# Build dbus-flashmq
FROM ubuntu:20.04 as dbus-flashmq
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y g++ make cmake pkg-config libdbus-1-dev
COPY dbus-flashmq .
RUN cmake -DCMAKE_BUILD_TYPE=Release && make
RUN nproc=$(nproc) && cmake -DCMAKE_BUILD_TYPE=Release && make -j "$nproc"

# Venus-docker build
FROM ubuntu:20.04
Expand Down

0 comments on commit 8af1542

Please sign in to comment.