clang-format-checker-docker/Dockerfile
2022-02-02 18:16:53 +01:00

18 lines
437 B
Docker

FROM ubuntu:21.10
RUN apt-get update && apt-get install -y --no-install-recommends \
clang-format-13 python3 \
&& rm -rf /var/lib/apt/lists/*
ADD run-clang-format/run-clang-format.py /usr/bin
RUN ln -s /usr/bin/python3 /usr/local/bin/python
RUN mkdir /src
WORKDIR /src
RUN echo "--- Clang-format version ---"
RUN clang-format-13 --version
ENTRYPOINT ["run-clang-format.py", "--clang-format-executable", "clang-format-13"]