anchor.diff:              INSTALL=${_prefix}/api-gateway/bin/resty-install \
       && apk del redis \
       && rm -rf /var/cache/apk/* \
  -    && rm -rf /tmp/api-gateway
  -
  -ENV LUA_RESTY_HTTP_VERSION 0.07
  -RUN echo " ... installing lua-resty-http..." \
  -    && apk update \
  -    && apk add make \
  -    && mkdir -p /tmp/api-gateway \
  -    && curl -k -L https://github.com/pintsized/lua-resty-http/archive/v${LUA_RESTY_HTTP_VERSION}.tar.gz -o /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION}.tar.gz \
  -    && tar -xf /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION}.tar.gz -C /tmp/api-gateway/ \
  -    && cd /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION} \
  -    && make install \
  -            LUA_LIB_DIR=${_prefix}/api-gateway/lualib \
  -            INSTALL=${_prefix}/api-gateway/bin/resty-install \
  -    && rm -rf /tmp/api-gateway
  -
  -ENV LUA_RESTY_IPUTILS_VERSION 0.2.0
  -RUN echo " ... installing lua-resty-iputils..." \
  -    && apk update \
  -    && apk add make \
  -    && mkdir -p /tmp/api-gateway \
  -    && curl -k -L https://github.com/hamishforbes/lua-resty-iputils/archive/v${LUA_RESTY_IPUTILS_VERSION}.tar.gz -o /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION}.tar.gz \
  -    && tar -xf /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION}.tar.gz -C /tmp/api-gateway/ \
  -    && cd /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION} \
  -    && export LUA_LIB_DIR=${_prefix}/api-gateway/lualib \
  -    && export INSTALL=${_prefix}/api-gateway/bin/resty-install \
  -    && $INSTALL -d ${LUA_LIB_DIR}/resty \
  -    && $INSTALL lib/resty/*.lua ${LUA_LIB_DIR}/resty/ \
       && rm -rf /tmp/api-gateway
   
   RUN \
  
positive.code:     && rm -rf /var/cache/apk/* \
      && rm -rf /tmp/api-gateway
  
  ENV REQUEST_VALIDATION_VERSION 1.1.1
  RUN echo " ... installing api-gateway-request-validation ..." \
      && apk update \
  
negative.code:     && rm -rf /var/cache/apk/* \
      && rm -rf /tmp/api-gateway
  
  ENV LUA_RESTY_HTTP_VERSION 0.07
  RUN echo " ... installing lua-resty-http..." \
      && apk update \
      && apk add make \
      && mkdir -p /tmp/api-gateway \
      && curl -k -L https://github.com/pintsized/lua-resty-http/archive/v${LUA_RESTY_HTTP_VERSION}.tar.gz -o /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION}.tar.gz \
      && tar -xf /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION}.tar.gz -C /tmp/api-gateway/ \
      && cd /tmp/api-gateway/lua-resty-http-${LUA_RESTY_HTTP_VERSION} \
      && make install \
              LUA_LIB_DIR=${_prefix}/api-gateway/lualib \
              INSTALL=${_prefix}/api-gateway/bin/resty-install \
      && rm -rf /tmp/api-gateway
  
  ENV LUA_RESTY_IPUTILS_VERSION 0.2.0
  RUN echo " ... installing lua-resty-iputils..." \
      && apk update \
      && apk add make \
      && mkdir -p /tmp/api-gateway \
      && curl -k -L https://github.com/hamishforbes/lua-resty-iputils/archive/v${LUA_RESTY_IPUTILS_VERSION}.tar.gz -o /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION}.tar.gz \
      && tar -xf /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION}.tar.gz -C /tmp/api-gateway/ \
      && cd /tmp/api-gateway/lua-resty-iputils-${LUA_RESTY_IPUTILS_VERSION} \
      && export LUA_LIB_DIR=${_prefix}/api-gateway/lualib \
      && export INSTALL=${_prefix}/api-gateway/bin/resty-install \
      && $INSTALL -d ${LUA_LIB_DIR}/resty \
      && $INSTALL lib/resty/*.lua ${LUA_LIB_DIR}/resty/ \
      && rm -rf /tmp/api-gateway
  
  ENV CONFIG_SUPERVISOR_VERSION 1.0.0
  ENV GOPATH /usr/lib/go/bin
  ENV GOBIN  /usr/lib/go/bin
  