anchor.diff:  # Build the server binary
  -FROM amd64/golang:alpine as buildServer
  +FROM golang:alpine as buildServer
   
   # Copy over the files
   RUN mkdir -p /go/src/github.com/mjarkk/wotnlclans
  
positive.code: # build the program
  RUN GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -v -a -installsuffix cgo
  
  FROM amd64/alpine as getWebp
  
  RUN apk add wget \
    && mkdir /webp \
    && wget http://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.3-linux-x86-64.tar.gz \
    && tar xf libwebp-1.0.3-linux-x86-64.tar.gz -C /webp
  
  # Build the javascript files
  FROM node:alpine as buildWeb
  
negative.code: WORKDIR /wotnlclans/web_static
  RUN yarn && yarn build
  
  FROM alpine
  
  RUN apk add ca-certificates ffmpeg libwebp libwebp-tools \
    && mkdir /wotnlclans \
    && mkdir /wotnlclans/web_static \
    && mkdir /wotnlclans/vendor \
    && mkdir /wotnlclans/vendor/webp \
    && cp /usr/bin/cwebp /wotnlclans/vendor/webp/cwebp \
    && cp /usr/bin/dwebp /wotnlclans/vendor/webp/dwebp \
    && cp /usr/bin/gif2webp /wotnlclans/vendor/webp/gif2webp \
    && cp /usr/bin/img2webp /wotnlclans/vendor/webp/img2webp \
    && cp /usr/bin/webpinfo /wotnlclans/vendor/webp/webpinfo \
    && cp /usr/bin/webpmux /wotnlclans/vendor/webp/webpmux
  
  COPY --from=buildWeb /wotnlclans/wotnlclans /wotnlclans/wotnlclans
  COPY --from=buildWeb /wotnlclans/icons /wotnlclans/icons
  COPY --from=buildWeb /wotnlclans/community.json /wotnlclans/community.json
  COPY --from=buildWeb /wotnlclans/web_static/build /wotnlclans/web_static/build
  
  WORKDIR /wotnlclans
  EXPOSE 8282
  