anchor.diff:  
   ### test
   
  -FROM build-production AS test
  +FROM build AS test
   
   ENV RAILS_ENV test
   ENV NODE_ENV test
  
positive.code: # syntax=docker/dockerfile:1.1.3-experimental
  ARG RUBY_VERSION=2.7.3
  
  ### build-production
  
  FROM neinteractiveliterature/base-ruby-build:${RUBY_VERSION} as build-production
  
  USER root
  WORKDIR /usr/src/intercode
  
negative.code: USER root
  RUN apk add --no-cache postgresql-client
  
  ### pre-production
  
  FROM build AS pre-production
  
  RUN rm -rf node_modules
  
  ### production
  
  FROM neinteractiveliterature/base-ruby-production:${RUBY_VERSION} as production
  
  COPY --from=pre-production /usr/local/bundle /usr/local/bundle
  COPY --from=pre-production --chown=www /usr/src/intercode /usr/src/intercode
  WORKDIR /usr/src/intercode
  
  CMD bundle exec rails server -p $PORT -b 0.0.0.0
  