Skip to content

Instantly share code, notes, and snippets.

@lukewpatterson
Created January 5, 2015 16:21
Show Gist options
  • Save lukewpatterson/cd7eac7ee43d09ccfe89 to your computer and use it in GitHub Desktop.
Save lukewpatterson/cd7eac7ee43d09ccfe89 to your computer and use it in GitHub Desktop.
FROM maven:3.2.5-jdk-8u40
RUN mkdir --parents /usr/src/app
WORKDIR /usr/src/app
# selectively add the POM file
ADD pom.xml /usr/src/app/
# get all the downloads out of the way
RUN mvn verify clean --fail-never
ADD . /usr/src/app
RUN mvn verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment