diff --git a/golang/latest/Dockerfile b/golang/latest/Dockerfile index 355a75ab6dd400d30a0d3f4b13df4b88971a3a4a..296fa729c2aed62af98068546b07937237a77887 100644 --- a/golang/latest/Dockerfile +++ b/golang/latest/Dockerfile @@ -9,21 +9,13 @@ ENV GOPATH /go ENV PATH ${GOPATH}/bin:$PATH RUN go get -u golang.org/x/lint/golint -# Add apt key for LLVM repository -SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - - -# Add LLVM apt repository -SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main" | tee -a /etc/apt/sources.list - -# Install clang from LLVM repository +# Install clang RUN apt-get update && apt-get install -y --no-install-recommends \ - clang-5.0 \ + clang \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Set Clang as default CC ENV set_clang /etc/profile.d/set-clang-cc.sh SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN echo "export CC=clang-5.0" | tee -a ${set_clang} && chmod a+x ${set_clang} +RUN echo "export CC=clang-7.0" | tee -a ${set_clang} && chmod a+x ${set_clang}