2024-04-03 02:22:17 +08:00
|
|
|
FROM gitpod/workspace-java-17:2024-03-31-14-01-15
|
2023-07-23 05:19:50 +08:00
|
|
|
|
2023-09-03 01:00:54 +08:00
|
|
|
ENV LLVM_SCRIPT="tmp_llvm.sh"
|
|
|
|
|
|
|
|
RUN test ! -f "$LLVM_SCRIPT" \
|
|
|
|
&& wget https://apt.llvm.org/llvm.sh -O "$LLVM_SCRIPT" \
|
|
|
|
&& chmod +x "$LLVM_SCRIPT"
|
|
|
|
|
2023-07-23 05:19:50 +08:00
|
|
|
USER root
|
|
|
|
|
2023-09-03 01:00:54 +08:00
|
|
|
RUN ./"$LLVM_SCRIPT" 16 \
|
|
|
|
&& apt-get update \
|
2023-07-23 05:19:50 +08:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
2023-09-03 01:00:54 +08:00
|
|
|
clang-format-16=1:16.0.6~++20230710042027+7cbf1a259152-1~exp1~20230710162048.105 \
|
2023-07-23 05:19:50 +08:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2023-09-03 01:00:54 +08:00
|
|
|
RUN ln -s "$(command -v clang-format-16)" "/usr/bin/clang-format"
|
|
|
|
|
2023-07-23 05:19:50 +08:00
|
|
|
USER gitpod
|
2023-09-03 01:00:54 +08:00
|
|
|
|
|
|
|
RUN rm "$LLVM_SCRIPT"
|