move version label for faster build, bump version

This commit is contained in:
Asif Bacchus 2020-03-10 23:20:54 -06:00
parent f301f9bbf0
commit 2c1712700c

View File

@ -34,7 +34,6 @@ LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.url="https://git.asifbacchus.app/ab-docker/ab-nginx" LABEL org.label-schema.url="https://git.asifbacchus.app/ab-docker/ab-nginx"
LABEL org.label-schema.usage="https://git.asifbacchus.app/ab-docker/ab-nginx/wiki" LABEL org.label-schema.usage="https://git.asifbacchus.app/ab-docker/ab-nginx/wiki"
LABEL org.label-schema.vcs-url="https://git.asifbacchus.app/ab-docker/ab-nginx.git" LABEL org.label-schema.vcs-url="https://git.asifbacchus.app/ab-docker/ab-nginx.git"
LABEL org.label-schema.version="2.0"
# copy configuration files # copy configuration files
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
@ -68,6 +67,7 @@ ENTRYPOINT [ "/entrypoint.sh" ]
# run NGINX by default # run NGINX by default
CMD [ "nginx", "-g", "daemon off;" ] CMD [ "nginx", "-g", "daemon off;" ]
# add build date label # add build date and version labels
ARG BUILD_DATE ARG BUILD_DATE
LABEL org.label-schema.build-date=${BUILD_DATE} LABEL org.label-schema.build-date=${BUILD_DATE}
LABEL org.label-schema.version="2.1"