FROM node:0.12.3-slim 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 ### ENV JSHINT_VERSION 2.5.11 RUN npm install -g jshint@$JSHINT_VERSION ### Defaults ### USER $user WORKDIR $homedir