anchor.diff:      && rm -rf /var/cache/apk/* \
       && rm -rf /tmp/api-gateway
   
  -ENV OPM_VERSION 0.0.3
   RUN echo " ... installing opm..." \
       && mkdir -p /tmp/api-gateway \
       && curl -k -L https://github.com/openresty/opm/archive/v${OPM_VERSION}.tar.gz -o /tmp/api-gateway/opm-${OPM_VERSION}.tar.gz \
  
positive.code:     && cd site \
      && ln -s ../lualib ./ \
      && ln -s ${_prefix}/api-gateway/bin/opm /usr/bin/opm \
      && ln -s ${_prefix}/api-gateway/bin/resty /usr/bin/resty
  
  ENV LUA_RESTY_HTTP_VERSION 0.10
  RUN opm get pintsized/lua-resty-http=${LUA_RESTY_HTTP_VERSION}
  ENV LUA_RESTY_IPUTILS_VERSION 0.2.1
  RUN opm get hamishforbes/lua-resty-iputils=${LUA_RESTY_IPUTILS_VERSION}
  ENV LUA_RESTY_STRING_VERSION 0.09
  RUN opm get openresty/lua-resty-string=${LUA_RESTY_STRING_VERSION}
  ENV LUA_RESTY_LRUCACHE_VERSION 0.04
  RUN opm get openresty/lua-resty-lrucache=${LUA_RESTY_LRUCACHE_VERSION}
  ENV LUA_RESTY_CJOSE_VERSION 0.3
  RUN opm get taylorking/lua-resty-cjose=${LUA_RESTY_CJOSE_VERSION}
  RUN opm get taylorking/lua-resty-rate-limit
  
  
  ENV NETURL_LUA_VERSION 0.9-1
  RUN echo " ... installing neturl.lua ... " \
      && mkdir -p /tmp/api-gateway \
      && curl -k -L https://github.com/golgote/neturl/archive/${NETURL_LUA_VERSION}.tar.gz -o /tmp/api-gateway/neturl.lua-${NETURL_LUA_VERSION}.tar.gz \
  
negative.code: 
  EXPOSE 80 8080 8423 9000
  
  ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
  CMD ["/etc/init-container.sh"]
  