From fe377c0fb2846c8940c543d8741954651e917df8 Mon Sep 17 00:00:00 2001 From: Pawel Palucki Date: Tue, 28 May 2024 06:01:31 -0100 Subject: [PATCH 1/2] Docker build ignores "build" directory to not interfere with it --- .dockerignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..796b96d1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +/build From f3a5672269ea6141bd5a981125fbe8116c432c93 Mon Sep 17 00:00:00 2001 From: Pawel Palucki Date: Tue, 28 May 2024 08:53:55 -0100 Subject: [PATCH 2/2] parallel build (make -j) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c9f8e084..2480e704 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM fedora:40@sha256:4e007f288dce23966216be81ef62ba05d139b9338f327c1d1c73b7167d RUN dnf -y install gcc-c++ git findutils make cmake COPY . /tmp/pcm -RUN cd /tmp/pcm && mkdir build && cd build && cmake .. && make +RUN cd /tmp/pcm && mkdir build && cd build && cmake .. && make -j FROM fedora:40@sha256:4e007f288dce23966216be81ef62ba05d139b9338f327c1d1c73b7167dd47312 COPY --from=builder /tmp/pcm/build/bin/* /usr/local/bin/