anchor.diff:  # Production image
   FROM base AS prod
   
  -# Really sad if CI requires this line for permissions to work
  -USER root
   
  -RUN mkdir -p /app \
  -  && chown -R 1000:1000 /app
  +RUN mkdir -p /app
   
   COPY ./scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
   
   WORKDIR /app
  -USER node
   
   COPY --from=builder /workspace/build /app
   COPY --from=builder /workspace/node_modules /app/node_modules
  
positive.code: # Copy source files
  COPY . /workspace
  
  # Setup file ownership and permissions
  RUN chown -R 1000:1000 /workspace
  
  # Change to non root user
  USER node
  
  # Install dependencies and run build script
  RUN npm ci \
    && /usr/local/bin/docker-build
  
negative.code:   && rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
    && apk del .build-deps
  
  # Builder image
  FROM base AS builder
  
  