reorder stages
[maven-build-process.git] / Dockerfile
blobcf738626ad981c1748bc60ade4721e36d770f6c2
1 FROM maven:3.3.9-jdk-8-alpine
2 MAINTAINER Sebastian Hoß (mail@shoss.de)
4 # TODO: https://github.com/docker/hub-feedback/issues/292
5 # TODO: https://github.com/docker/hub-feedback/issues/403
7 RUN mkdir -p /mbp && \
8     mkdir -p /config && \
9     mkdir -p /repository && \
10     mkdir -p /project && \
11     mkdir -p /workspace
13 VOLUME /project
15 COPY build/docker/local-nexus-mirror.xml /config/
16 COPY build/docker/google-mirror.xml /config/
18 COPY pom.xml /mbp/
19 COPY maven-parents/pom.xml /mbp/maven-parents/
20 COPY maven-parents/maven-parents-superpom/pom.xml /mbp/maven-parents/maven-parents-superpom/
21 COPY maven-parents/maven-parents-java/pom.xml /mbp/maven-parents/maven-parents-java/
22 COPY maven-parents/maven-parents-java/pom.xml /mbp/maven-parents/maven-parents-java/
23 COPY maven-parents/maven-parents-java/pom.xml /mbp/maven-parents/maven-parents-java/
24 COPY maven-parents/maven-parents-java/maven-parents-java-prototype/pom.xml /mbp/maven-parents/maven-parents-java/maven-parents-java-prototype/
25 COPY maven-parents/maven-parents-java/maven-parents-java-stable/pom.xml /mbp/maven-parents/maven-parents-java/maven-parents-java-stable/
26 COPY maven-boms/pom.xml /mbp/maven-boms/
27 COPY maven-boms/maven-boms-all/pom.xml /mbp/maven-boms/maven-boms-all/
28 COPY maven-boms/maven-boms-aspect/pom.xml /mbp/maven-boms/maven-boms-aspect/
29 COPY maven-boms/maven-boms-bytecode/pom.xml /mbp/maven-boms/maven-boms-bytecode/
30 COPY maven-boms/maven-boms-cache/pom.xml /mbp/maven-boms/maven-boms-cache/
31 COPY maven-boms/maven-boms-camel/pom.xml /mbp/maven-boms/maven-boms-camel/
32 COPY maven-boms/maven-boms-database/pom.xml /mbp/maven-boms/maven-boms-database/
33 COPY maven-boms/maven-boms-eclipse/pom.xml /mbp/maven-boms/maven-boms-eclipse/
34 COPY maven-boms/maven-boms-google/pom.xml /mbp/maven-boms/maven-boms-google/
35 COPY maven-boms/maven-boms-javax/pom.xml /mbp/maven-boms/maven-boms-javax/
36 COPY maven-boms/maven-boms-json/pom.xml /mbp/maven-boms/maven-boms-json/
37 COPY maven-boms/maven-boms-karaf/pom.xml /mbp/maven-boms/maven-boms-karaf/
38 COPY maven-boms/maven-boms-maven/pom.xml /mbp/maven-boms/maven-boms-maven/
39 COPY maven-boms/maven-boms-pax/pom.xml /mbp/maven-boms/maven-boms-pax/
40 COPY maven-boms/maven-boms-scripting/pom.xml /mbp/maven-boms/maven-boms-scripting/
41 COPY maven-boms/maven-boms-sebhoss/pom.xml /mbp/maven-boms/maven-boms-sebhoss/
42 COPY maven-boms/maven-boms-square/pom.xml /mbp/maven-boms/maven-boms-square/
43 COPY maven-boms/maven-boms-testing/pom.xml /mbp/maven-boms/maven-boms-testing/
44 COPY maven-boms/maven-boms-wikitext/pom.xml /mbp/maven-boms/maven-boms-wikitext/
45 COPY maven-boms/maven-boms-yaml/pom.xml /mbp/maven-boms/maven-boms-yaml/
47 WORKDIR /mbp
49 RUN mvn dependency:go-offline \
50         -Dmaven.repo.local=/repository