FROM golang:1.4.2 MAINTAINER LintCI ### Setup User ### ENV user lint_trap ENV group linters ENV homedir /src/ RUN mkdir -p $homedir \ && groupadd -r $group -g 777 \ && useradd -u 666 -r -g $group -d $homedir -s /sbin/nologin -c "Docker image user" $user \ && chown -R $user:$group $homedir ### Setup Linter ### RUN go get github.com/golang/lint/golint ### Defaults ### USER $user WORKDIR $homedir