From ab1748f25a1febc759f58a170525f7b9994c7c2a Mon Sep 17 00:00:00 2001 From: mrb Date: Mon, 13 Jun 2016 13:31:34 -0400 Subject: [PATCH] Slim Dockerfile and run fewer rules by default --- Dockerfile | 20 ++++++++-------- config/codeclimate_checkstyle.xml | 38 ------------------------------- 2 files changed, 9 insertions(+), 49 deletions(-) diff --git a/Dockerfile b/Dockerfile index e64056a..5894f2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,19 @@ -FROM java +FROM java:8-jre -MAINTAINER Sivakumar Kailasam +MAINTAINER Sivakumar Kailasam -# Groovy setup, defined multiple RUN steps for better caching resulting in quicker builds -RUN cd /tmp -RUN wget http://dl.bintray.com/groovy/maven/groovy-binary-2.4.0-beta-4.zip -RUN unzip groovy-binary-2.4.0-beta-4.zip -RUN mv groovy-2.4.0-beta-4 /groovy -RUN rm groovy-binary-2.4.0-beta-4.zip +RUN cd /tmp && \ + wget http://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.6.zip && \ + unzip apache-groovy-binary-2.4.6.zip && \ + mv groovy-2.4.6 /groovy && \ + rm apache-groovy-binary-2.4.6.zip -# Set Groovy path ENV GROOVY_HOME /groovy ENV PATH $GROOVY_HOME/bin/:$PATH -RUN useradd -r -s /bin/false app +RUN groupadd app -g 9000 && useradd -g 9000 -u 9000 -r -s /bin/false app -# Codeclimate specific setup +VOLUME /code WORKDIR /code COPY . /usr/src/app diff --git a/config/codeclimate_checkstyle.xml b/config/codeclimate_checkstyle.xml index cf65e39..240112d 100644 --- a/config/codeclimate_checkstyle.xml +++ b/config/codeclimate_checkstyle.xml @@ -9,11 +9,6 @@ - - - - - @@ -39,24 +34,11 @@ - - - - - - - - - - - @@ -112,24 +94,6 @@ value="Method type name ''{0}'' must match pattern ''{1}''."/> - - - - - - - - - - - - - - @@ -137,9 +101,7 @@ - -