use alpine based image
[maven-build-process.git] / Dockerfile
blobfc1c15a4936951b3e293f8f68e799dcdac762a96
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/nexus-mirror.xml /config/
16 COPY build/docker/local-nexus-mirror.xml /config/
17 COPY build/docker/google-mirror.xml /config/
19 COPY pom.xml /mbp/
20 COPY maven-parents/pom.xml /mbp/maven-parents/
21 COPY maven-parents/maven-parents-superpom/pom.xml /mbp/maven-parents/maven-parents-superpom/
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/pom.xml /mbp/maven-parents/maven-parents-java/
25 COPY maven-parents/maven-parents-java/maven-parents-java-prototype/pom.xml /mbp/maven-parents/maven-parents-java/maven-parents-java-prototype/
26 COPY maven-parents/maven-parents-java/maven-parents-java-stable/pom.xml /mbp/maven-parents/maven-parents-java/maven-parents-java-stable/
27 COPY maven-boms/pom.xml /mbp/maven-boms/
28 COPY maven-boms/maven-boms-all/pom.xml /mbp/maven-boms/maven-boms-all/
29 COPY maven-boms/maven-boms-aspect/pom.xml /mbp/maven-boms/maven-boms-aspect/
30 COPY maven-boms/maven-boms-bytecode/pom.xml /mbp/maven-boms/maven-boms-bytecode/
31 COPY maven-boms/maven-boms-cache/pom.xml /mbp/maven-boms/maven-boms-cache/
32 COPY maven-boms/maven-boms-camel/pom.xml /mbp/maven-boms/maven-boms-camel/
33 COPY maven-boms/maven-boms-database/pom.xml /mbp/maven-boms/maven-boms-database/
34 COPY maven-boms/maven-boms-eclipse/pom.xml /mbp/maven-boms/maven-boms-eclipse/
35 COPY maven-boms/maven-boms-google/pom.xml /mbp/maven-boms/maven-boms-google/
36 COPY maven-boms/maven-boms-javax/pom.xml /mbp/maven-boms/maven-boms-javax/
37 COPY maven-boms/maven-boms-json/pom.xml /mbp/maven-boms/maven-boms-json/
38 COPY maven-boms/maven-boms-karaf/pom.xml /mbp/maven-boms/maven-boms-karaf/
39 COPY maven-boms/maven-boms-maven/pom.xml /mbp/maven-boms/maven-boms-maven/
40 COPY maven-boms/maven-boms-pax/pom.xml /mbp/maven-boms/maven-boms-pax/
41 COPY maven-boms/maven-boms-scripting/pom.xml /mbp/maven-boms/maven-boms-scripting/
42 COPY maven-boms/maven-boms-sebhoss/pom.xml /mbp/maven-boms/maven-boms-sebhoss/
43 COPY maven-boms/maven-boms-square/pom.xml /mbp/maven-boms/maven-boms-square/
44 COPY maven-boms/maven-boms-testing/pom.xml /mbp/maven-boms/maven-boms-testing/
45 COPY maven-boms/maven-boms-wikitext/pom.xml /mbp/maven-boms/maven-boms-wikitext/
46 COPY maven-boms/maven-boms-yaml/pom.xml /mbp/maven-boms/maven-boms-yaml/
48 WORKDIR /mbp
50 RUN mvn dependency:go-offline \
51         -Dmaven.repo.local=/repository