anchor.diff:  
   WORKDIR /app
   
  -ENV GO111MODULE on
  -ENV GOPROXY https://goproxy.io
   COPY go.mod .
   COPY go.sum .
  -RUN env $(cat /tmp/.env | xargs) go mod download
  +RUN go mod download
  +
   COPY . ./
  -
  -ARG VERSION=dev
  -RUN env $(cat /tmp/.env | xargs) go build -ldflags "-w -s -X 'main.version=${VERSION}'" -v -o ftpgrab cmd/main.go
  +RUN go build -ldflags "-w -s -X 'main.version=${VERSION}'" -v -o ftpgrab cmd/main.go
   
   FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:latest
   
  
positive.code: 
  VOLUME [ "/db", "/download" ]
  
  ENTRYPOINT [ "/usr/local/bin/ftpgrab" ]
  CMD [ "--config", "/ftpgrab.yml" ]
  
negative.code: FROM --platform=${BUILDPLATFORM:-linux/amd64} tonistiigi/xx:golang AS xgo
  FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.13-alpine AS builder
  
  ARG BUILD_DATE
  ARG VCS_REF
  ARG VERSION=dev
  
  ENV CGO_ENABLED 0
  ENV GO111MODULE on
  ENV GOPROXY https://goproxy.io
  COPY --from=xgo / /
  
  ARG TARGETPLATFORM
  RUN go env
  
  RUN apk --update --no-cache add \
      build-base \
  