From 085a3ee075e811fbc9b863b18399d28ff67ea855 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 18 Aug 2018 17:22:24 -0700
Subject: [PATCH] Golang image for testing, per
 https://gitlab.com/pantomath-io/demo-tools

---
 golang/latest/Dockerfile | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 golang/latest/Dockerfile

diff --git a/golang/latest/Dockerfile b/golang/latest/Dockerfile
new file mode 100644
index 0000000..f5d9b43
--- /dev/null
+++ b/golang/latest/Dockerfile
@@ -0,0 +1,24 @@
+# Base image: https://hub.docker.com/_/golang/
+FROM golang:latest
+MAINTAINER ethitter
+
+# Install golint
+ENV GOPATH /go
+ENV PATH ${GOPATH}/bin:$PATH
+RUN go get -u github.com/golang/lint/golint
+
+# Add apt key for LLVM repository
+RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
+
+# Add LLVM apt repository
+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
+RUN apt-get update && apt-get install -y --no-install-recommends \
+    clang-5.0 \
+    && 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
+RUN echo "export CC=clang-5.0" | tee -a ${set_clang} && chmod a+x ${set_clang}
-- 
GitLab