Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
feat: add clang 7
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Oct 31, 2019
1 parent d6c7ab0 commit f76ee6d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions clang/7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:18.04

ENV CLANG_VERSION=7.0.1

RUN apt-get update && \
apt-get install -y curl xz-utils python build-essential && \
curl -sL -o /tmp/clang-$CLANG_VERSION.tar.xz.sig http://releases.llvm.org/$CLANG_VERSION/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig && \
curl -sL -o /tmp/clang-$CLANG_VERSION.tar.xz http://releases.llvm.org/$CLANG_VERSION/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04.tar.xz && \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 474E22316ABF4785A88C6E8EA2C794A986419D8A && \
gpg --verify /tmp/clang-$CLANG_VERSION.tar.xz.sig && \
tar xvf /tmp/clang-$CLANG_VERSION.tar.xz -C /opt && \
rm -fr /tmp/*

ENV CC=clang
ENV CXX=clang++
ENV PATH="/opt/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04/bin:${PATH}"

CMD bash

0 comments on commit f76ee6d

Please sign in to comment.