Permalink
Switch branches/tags
Nothing to show
Find file Copy path
33efee7 Jul 14, 2016
1 contributor

Users who have contributed to this file

22 lines (16 sloc) 354 Bytes
# fetch basic image
FROM maven:3.3.9-jdk-8
# application placed into /opt/app
RUN mkdir -p /opt/app
WORKDIR /opt/app
# selectively add the POM file and
# install dependencies
COPY pom.xml /opt/app/
RUN mvn install
# rest of the project
COPY src /opt/app/src
RUN mvn package
# local application port
EXPOSE 8080
# execute it
CMD ["mvn", "exec:java"]