anchor.diff:      $HOME/.poetry/bin/poetry install --no-dev -E import-json
   COPY . /app/
   
  +COPY --from=venv-build /app/.venv /app/.venv
   COPY --from=front-end /app/mainapp/assets /app/mainapp/assets
   COPY --from=front-end /app/node_modules /app/node_modules
   
  
positive.code: FROM node:10 AS front-end
  
  ENV NODE_ENV=production
  
negative.code: COPY mainapp/assets /app/mainapp/assets
  RUN npm run build:prod && npm run build:email
  
  # Stage 2: Build the .venv folder
  FROM python:3.7-slim-buster AS venv-build
  
  COPY pyproject.toml /app/pyproject.toml
  COPY poetry.lock /app/poetry.lock
  WORKDIR /app
  
  RUN apt-get update && \
      apt-get install -y curl gnupg git default-libmysqlclient-dev libmagickwand-dev poppler-utils libssl-dev gettext && \
      curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python && \
      $HOME/.poetry/bin/poetry config virtualenvs.in-project true && \
      $HOME/.poetry/bin/poetry install --no-dev -E import-json
  
  # Stage 3: The actual container
  FROM python:3.7-slim-buster
  
  ENV PYTHONUNBUFFERED=1 NODE_ENV=production
  
  RUN apt-get update && \
      apt-get install -y curl gnupg && \
      curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
      apt-get install -y nodejs git default-libmysqlclient-dev libmagickwand-dev poppler-utils libssl-dev gettext && \
      apt-get purge -y curl gnupg && \
      apt-get autoremove -y && \
      apt-get clean && \
      rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  WORKDIR /app
  
  # Poetry wants these
  