anchor.diff:  	libudev-dev \
   	libsystemd-dev \
   	binutils-mingw-w64 \
  -	g++-mingw-w64-x86-64 \ 
  +	g++-mingw-w64-x86-64 \
   	net-tools \
   	pigz \
   	python-backports.ssl-match-hostname \
  
positive.code: 	&& curl -sSL https://github.com/checkpoint-restore/criu/archive/v${CRIU_VERSION}.tar.gz | tar -C /usr/src/criu/ -xz --strip-components=1 \
  	&& cd /usr/src/criu \
  	&& make \
  	&& make PREFIX=/opt/criu install-criu
  
  
  FROM base AS registry
  
negative.code: 	&& (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT") \
  	&& GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \
  		go build -buildmode=pie -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \
  	&& case $(uname -m) in \
  		x86_64|ppc64le|s390x) \
  		(cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT_SCHEMA1"); \
  		GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"; \
  			go build -buildmode=pie -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry; \
  		;; \
  	   esac \
  	&& rm -rf "$GOPATH"
  
  
  