2020-05-29 23:26:53 +02:00
|
|
|
FROM ubuntu:20.04
|
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 \
|
2019-06-14 22:25:05 +02:00
|
|
|
clang-format 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
|
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 ---"
|
|
|
|
RUN clang-format --version
|
|
|
|
|
2019-06-24 20:54:19 +02:00
|
|
|
ENTRYPOINT ["run-clang-format.py"]
|
2019-06-14 22:25:05 +02:00
|
|
|
|