Zack Williams | 46c952d | 2017-07-17 11:16:26 -0700 | [diff] [blame^] | 1 | # Dockerfile for onos-apps maven repo |
Andy Bavier | 25ebf0e | 2017-06-06 18:27:15 -0400 | [diff] [blame] | 2 | |
Zack Williams | 46c952d | 2017-07-17 11:16:26 -0700 | [diff] [blame^] | 3 | FROM maven:3-jdk-8 as maven |
| 4 | COPY settings.xml /root/.m2/settings.xml |
| 5 | COPY . /mavenwd |
| 6 | WORKDIR /mavenwd/apps |
Andy Bavier | 25ebf0e | 2017-06-06 18:27:15 -0400 | [diff] [blame] | 7 | RUN mvn clean install -U |
| 8 | |
| 9 | FROM nginx |
Zack Williams | 46c952d | 2017-07-17 11:16:26 -0700 | [diff] [blame^] | 10 | WORKDIR /usr/share/nginx/html |
| 11 | COPY --from=maven /mavenwd/repository repository |
Andy Bavier | 25ebf0e | 2017-06-06 18:27:15 -0400 | [diff] [blame] | 12 | RUN chown nginx:nginx -R /usr/share/nginx/html/repository |
| 13 | |
Zack Williams | 46c952d | 2017-07-17 11:16:26 -0700 | [diff] [blame^] | 14 | # Label image |
| 15 | ARG org_label_schema_schema_version=1.0 |
| 16 | ARG org_label_schema_name=opencord/mavenrepo |
| 17 | ARG org_label_schema_version=unknown |
| 18 | ARG org_label_schema_vcs_url=unknown |
| 19 | ARG org_label_schema_vcs_ref=unknown |
| 20 | ARG org_label_schema_build_date=unknown |
| 21 | ARG org_opencord_vcs_commit_date=unknown |
| 22 | |
| 23 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 24 | org.label-schema.name=$org_label_schema_name \ |
| 25 | org.label-schema.version=$org_label_schema_version \ |
| 26 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 27 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 28 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 29 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |