Skip to content

Commit

Permalink
feat(docker): Add check script to Dockerfile (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula authored Dec 26, 2023
1 parent 1b1eeea commit 0c20e40
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions clang-format-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ FROM ubuntu:${UBUNTU_VERSION}
ARG CLANG_FORMAT_VERSION

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
clang-format-${CLANG_FORMAT_VERSION} \
# Clean cache
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& mv /usr/bin/clang-format-${CLANG_FORMAT_VERSION} /usr/bin/clang-format
&& apt-get install --no-install-recommends -y \
clang-format-${CLANG_FORMAT_VERSION} \
# Clean cache
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& mv /usr/bin/clang-format-${CLANG_FORMAT_VERSION} /usr/bin/clang-format

WORKDIR /

COPY check.sh .

ENTRYPOINT ["/usr/bin/clang-format"]

0 comments on commit 0c20e40

Please sign in to comment.