anchor.diff:  ENV TZ 'Asia/Shanghai'
   ENV SONATYPE_DIR /usr/local/sonatype
   ENV SONATYPE_WORK ${SONATYPE_DIR}/sonatype-work
  -ENV NEXUS_VERSION 3.2.0-01
  +ENV NEXUS_VERSION 3.6.0-02 
   ENV NEXUS_HOME ${SONATYPE_DIR}/nexus
   ENV NEXUS_DATA /data/nexus-data
   ENV NEXUS_CONTEXT ''
  
positive.code: ENV JAVA_MIN_MEM 1200m
  ENV EXTRA_JAVA_OPTS ""
  
  RUN apk upgrade --no-cache \
      && apk add --no-cache bash tzdata wget tar \
      && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
      && echo "Asia/Shanghai" > /etc/timezone \
      && mkdir -p ${SONATYPE_DIR} ${SONATYPE_WORK} ${NEXUS_DATA} \
  
negative.code:     && mv nexus-${NEXUS_VERSION} ${NEXUS_HOME} \
      && sed -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' -i ${NEXUS_HOME}/etc/nexus-default.properties \
      && ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 \
      && apk del wget tar \
      && rm -rf /var/cache/apk/*
  
  WORKDIR ${NEXUS_HOME}
  