Skip to content

Commit

Permalink
improve dockerfile.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalucki committed May 28, 2024
1 parent 3b35bb2 commit 3d76140
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ FROM fedora:40@sha256:4e007f288dce23966216be81ef62ba05d139b9338f327c1d1c73b7167d

RUN dnf -y install gcc-c++ git findutils make cmake strace gdb util-linux
COPY . /tmp/pcm
RUN --mount=type=cache,target=/tmp/pcm/build cd /tmp/pcm/build && cmake -D CMAKE_BUILD_TYPE=Debug ..
RUN --mount=type=cache,target=/tmp/pcm/build cd /tmp/pcm/build && cmake --build . -t pcm -t pcm-sensor-server -t pcm-tpmi && cp -v /tmp/pcm/build/bin/pcm* /bin/
RUN --mount=type=cache,target=/tmp/pcm/build cd /tmp/pcm/build && cmake -D CMAKE_BUILD_TYPE=Debug .. && cmake --build . -t pcm pcm-sensor-server pcm-tpmi -j && cp -v /tmp/pcm/build/bin/pcm* /bin/
#ENV PCM_NO_PERF=1

0 comments on commit 3d76140

Please sign in to comment.