Created
July 20, 2017 09:26
-
-
Save dyng/91a3c89328e0cbd57587722ed6c52286 to your computer and use it in GitHub Desktop.
Create an base image for CI building
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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