Skip to content

Instantly share code, notes, and snippets.

@dyng
Created July 20, 2017 09:26
Show Gist options
  • Save dyng/91a3c89328e0cbd57587722ed6c52286 to your computer and use it in GitHub Desktop.
Save dyng/91a3c89328e0cbd57587722ed6c52286 to your computer and use it in GitHub Desktop.
Create an base image for CI building
FROM maven:3.5-jdk-8
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# add settings.xml into project directory
COPY settings.xml "$MAVEN_CONFIG"
ADD . build
RUN cd build && mvn install -DskipTests
RUN rm -rf build
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment