anchor.diff:  
   VOLUME [ "/db", "/download" ]
   
  -ENTRYPOINT [ "/usr/local/bin/ftpgrab" ]
  +ENTRYPOINT [ "ftpgrab" ]
   CMD [ "--config", "/ftpgrab.yml" ]
  
positive.code: FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.13-alpine as builder
  
  ARG BUILD_DATE
  ARG VCS_REF
  ARG VERSION
  
  ARG TARGETPLATFORM
  ARG BUILDPLATFORM
  RUN printf "I am running on ${BUILDPLATFORM:-linux/amd64}, building for ${TARGETPLATFORM:-linux/amd64}\n$(uname -a)\n" \
    && $(case ${TARGETPLATFORM:-linux/amd64} in \
        "linux/amd64")   echo "GOOS=linux GOARCH=amd64" > /tmp/.env                       ;; \
        "linux/arm/v6")  echo "GOOS=linux GOARCH=arm GOARM=6" > /tmp/.env                 ;; \
        "linux/arm/v7")  echo "GOOS=linux GOARCH=arm GOARM=7" > /tmp/.env                 ;; \
        "linux/arm64")   echo "GOOS=linux GOARCH=arm64" > /tmp/.env                       ;; \
        "linux/386")     echo "GOOS=linux GOARCH=386" > /tmp/.env                         ;; \
        "linux/ppc64le") echo "GOOS=linux GOARCH=ppc64le" > /tmp/.env                     ;; \
        "linux/s390x")   echo "GOOS=linux GOARCH=s390x" > /tmp/.env                       ;; \
        *)               echo "TARGETPLATFORM ${TARGETPLATFORM} not found..." && exit 1   ;; \
      esac) \
    && cat /tmp/.env
  RUN env $(cat /tmp/.env | xargs) go env
  
  RUN apk --update --no-cache add \
      build-base \
  
negative.code: 
  WORKDIR /app
  
  COPY go.mod .
  COPY go.sum .
  RUN go mod download
  
  COPY . ./
  RUN go build -ldflags "-w -s -X 'main.version=${VERSION}'" -v -o ftpgrab cmd/main.go
  
  FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:latest
  
  