anchor.diff:      binutils \
       coreutils \
       tar \
  -    bash |tee > /tmp/deps.txt \
  -    && apk add --no-cache $(cat /tmp/deps.txt) \
  -    && rm -v /tmp/deps.txt \
  +    bash \
       && mkdir -p /var/run/mesos
   
   # Mesos Default Options
  
positive.code:     subversion-dev \
      zlib \
      zlib-dev |tee > /tmp/deps.txt \
    && apk add --no-cache $(cat /tmp/deps.txt) \
    && ln -sv /usr/include/locale.h /usr/include/xlocale.h \
    && mkdir -p /tmp/mesos \
    && cd /tmp/mesos \
  
negative.code:   && tar xf "$PACKAGE" \
    && cd mesos-"$VERSION" \
    && ./configure $CONFIG_FLAGS \
    && for i in $(cat /tmp/deps.txt); do apk del $(echo $i | sed 's/@.*//'); done \
    && cd / \
    && rm -rf /tmp/*
    
  # Runtime dependencies
  RUN apk add --no-cache docker \
      dumb-init@edge \
      libstdc++ \
      subversion \
      curl \
  