Skip to content

Commit 3381057

Browse files
committed
update Dockerfile to use clang instead of gcc
1 parent eb1774a commit 3381057

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM ubuntu:focal
1+
FROM ubuntu:noble
22

33
RUN apt-get update
44

55
# disable interactive install
6-
ENV DEBIAN_FRONTEND noninteractive
6+
ENV DEBIAN_FRONTEND=noninteractive
77

88
# install developement tools
99
RUN apt-get -y install cmake
10-
RUN apt-get -y install g++
10+
#RUN apt-get -y install g++
11+
RUN apt-get -y install clang
1112
RUN apt-get -y install libtiff-dev
1213

1314
# install developement debugging tools
@@ -17,9 +18,10 @@ RUN apt-get -y install valgrind
1718
WORKDIR /usr/src/openjph/
1819
COPY . .
1920
WORKDIR /usr/src/openjph/build
20-
RUN cmake -DCMAKE_BUILD_TYPE=Release ../
21+
RUN rm -R * || true
22+
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=asan ../
2123
RUN make
22-
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/src/openjph/bin
24+
ENV LD_LIBRARY_PATH=/usr/src/openjph/bin
2325
ENV PATH=$PATH:/usr/src/openjph/bin
2426

2527
# finalize docker environment

0 commit comments

Comments
 (0)