This commit is contained in:
49
Linux/CPPBuilder/Dockerfile
Normal file
49
Linux/CPPBuilder/Dockerfile
Normal file
@@ -0,0 +1,49 @@
|
||||
ARG BASE_BUILDER
|
||||
|
||||
FROM $BASE_BUILDER
|
||||
|
||||
ENV CCACHE_DIR=/ccache
|
||||
ENV CCACHE_COMPRESS=1
|
||||
ENV CCACHE_MAXSIZE=10G
|
||||
ENV CCACHE_COMPILERCHECK=content
|
||||
|
||||
RUN apt-get install build-essential -y
|
||||
RUN apt-get install ccache -y
|
||||
RUN apt-get install cmake -y
|
||||
RUN apt-get install ninja-build -y
|
||||
RUN apt-get install git -y
|
||||
RUN apt-get install pkg-config -y
|
||||
|
||||
RUN wget https://apt.llvm.org/llvm.sh && \
|
||||
chmod +x llvm.sh && \
|
||||
./llvm.sh 18 all
|
||||
RUN apt-get install clang-tools-18 -y
|
||||
|
||||
RUN ln -s /bin/clang-18 /bin/clang
|
||||
RUN ln -s /bin/clang++-18 /bin/clang++
|
||||
RUN ln -s /usr/bin/llvm-profdata-18 /usr/bin/llvm-profdata
|
||||
RUN ln -s /usr/bin/llvm-cov-18 /usr/bin/llvm-cov
|
||||
RUN ln -s /usr/bin/clang-format-18 /usr/bin/clang-format
|
||||
RUN ln -s /usr/bin/clang-tidy-18 /usr/bin/clang-tidy
|
||||
RUN ln -s /usr/bin/llvm-ar-18 /usr/bin/llvm-ar
|
||||
RUN ln -s /usr/bin/llvm-nm-18 /usr/bin/llvm-nm
|
||||
RUN ln -s /usr/bin/llvm-ranlib-18 /usr/bin/llvm-ranlib
|
||||
|
||||
RUN ccache --zero-stats
|
||||
|
||||
RUN ccache --show-stats
|
||||
|
||||
RUN apt-get install pipx -y
|
||||
RUN pipx ensurepath
|
||||
|
||||
RUN git clone --branch v2.40.4 https://github.com/rui314/mold.git
|
||||
RUN mold/install-build-deps.sh
|
||||
RUN cmake mold -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -B mold/build
|
||||
RUN cmake --build mold/build -j$(nproc)
|
||||
RUN cmake --build mold/build --target install
|
||||
|
||||
RUN pipx install conan
|
||||
|
||||
RUN conan config install https://gitlab.com/bigfootdev/config/conan.git
|
||||
RUN conan remote add bigfootpackages https://packages.bigfootengine.com/artifactory/api/conan/bigfootpackages
|
||||
RUN conan remote disable conancenter
|
||||
Reference in New Issue
Block a user