Skip to content

Commit

Permalink
Merge pull request #7 from InsightSoftwareConsortium/clang-format-19
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz authored Jan 27, 2025
2 parents 0e9cbb0 + aa9959c commit e52a745
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
FROM ubuntu:18.04
FROM ubuntu:24.04

COPY LICENSE README.md /

RUN apt-get update && apt-get install -y \
clang-format-8 \
git \
wget \
&& cd /usr/bin && ln -s clang-format-8 clang-format
lsb-release \
software-properties-common \
gnupg \
&& apt-get clean

# Download latest .deb packages from llvm.
# See https://apt.llvm.org/ for instructions.
RUN wget https://apt.llvm.org/llvm.sh \
&& chmod +x llvm.sh \
&& ./llvm.sh 19 \
&& apt-get install clang-format-19 \
&& apt-get clean

# The following is a workaround to allow other scripts
# that were hard-coded to use the unversioned clang-format
# binary to continue to work.
RUN cd /usr/bin && rm -rf clang-format && ln -s clang-format-19 clang-format

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down

0 comments on commit e52a745

Please sign in to comment.