2022-02-02 18:10:46 +01:00
|
|
|
FROM ubuntu:21.10
|
2019-06-14 22:25:05 +02:00
|
|
|
|
2020-05-29 23:26:53 +02:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
2022-02-02 18:10:46 +01:00
|
|
|
clang-format-13 python3 \
|
2019-06-14 22:25:05 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ADD run-clang-format/run-clang-format.py /usr/bin
|
2020-05-30 00:49:38 +02:00
|
|
|
RUN ln -s /usr/bin/python3 /usr/local/bin/python
|
2019-06-14 22:25:05 +02:00
|
|
|
|
|
|
|
RUN mkdir /src
|
|
|
|
WORKDIR /src
|
2020-05-30 00:49:38 +02:00
|
|
|
|
|
|
|
RUN echo "--- Clang-format version ---"
|
2022-02-02 18:10:46 +01:00
|
|
|
RUN clang-format-13 --version
|
2020-05-30 00:49:38 +02:00
|
|
|
|
2022-02-02 18:16:53 +01:00
|
|
|
ENTRYPOINT ["run-clang-format.py", "--clang-format-executable", "clang-format-13"]
|
2019-06-14 22:25:05 +02:00
|
|
|
|