blob: 86ee4072731bbadd1a0c1138721f94b7c0a679fc [file] [log] [blame]
Zack Williams46c952d2017-07-17 11:16:26 -07001# Dockerfile for onos-apps maven repo
Andy Bavier25ebf0e2017-06-06 18:27:15 -04002
Zack Williams46c952d2017-07-17 11:16:26 -07003FROM maven:3-jdk-8 as maven
4COPY settings.xml /root/.m2/settings.xml
5COPY . /mavenwd
6WORKDIR /mavenwd/apps
Andy Bavier25ebf0e2017-06-06 18:27:15 -04007RUN mvn clean install -U
8
9FROM nginx
Zack Williams46c952d2017-07-17 11:16:26 -070010WORKDIR /usr/share/nginx/html
11COPY --from=maven /mavenwd/repository repository
Andy Bavier25ebf0e2017-06-06 18:27:15 -040012RUN chown nginx:nginx -R /usr/share/nginx/html/repository
13
Zack Williams46c952d2017-07-17 11:16:26 -070014# Label image
15ARG org_label_schema_schema_version=1.0
16ARG org_label_schema_name=opencord/mavenrepo
17ARG org_label_schema_version=unknown
18ARG org_label_schema_vcs_url=unknown
19ARG org_label_schema_vcs_ref=unknown
20ARG org_label_schema_build_date=unknown
21ARG org_opencord_vcs_commit_date=unknown
22
23LABEL 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