clang-format-checker-docker/Dockerfile

18 lines
437 B
Docker
Raw Permalink Normal View History

2022-02-02 18:10:46 +01:00
FROM ubuntu:21.10
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 \
&& 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
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
ENTRYPOINT ["run-clang-format.py", "--clang-format-executable", "clang-format-13"]