ARG CODE_VERSION=1.3.0 FROM osixia/openldap:${CODE_VERSION} ARG CODE_VERSION ENV CODE_VERSION="${CODE_VERSION}" LABEL maintainer=az@zok.xyz \ org.label-schema.name="Kopano LDAP container" \ org.label-schema.description="Container for running OpenLDAP, which already has the Kopano schema included." \ org.label-schema.url="https://kopano.io" \ org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \ org.label-schema.version=$CODE_VERSION \ org.label-schema.schema-version="1.0" COPY bootstrap /container/service/slapd/assets/config/bootstrap RUN rm /container/service/slapd/assets/config/bootstrap/schema/mmc/mail.schema RUN touch /etc/ldap/slapd.conf ARG VCS_REF LABEL org.label-schema.vcs-ref=$VCS_REF