anchor.diff:      PATH="${PATH}:/home/python/.local/bin" \
       USER="python"
   
  +# Download the JS/CSS/etc resources if in prodution env
  +RUN mkdir -p octopus/blocktopus/resources/cache/ && mkdir -p octopus/blocktopus/templates/ && chown python:python -R octopus
  +RUN mkdir tools && chown python:python tools
  +COPY --chown=python:python octopus/blocktopus/templates/template-resources.json octopus/blocktopus/templates/template-resources.json
  +COPY --chown=python:python tools/build.py tools
  +RUN if [ "$OCTOPUS_ENV" == "production" ]; then \
  +  python tools/build.py ; fi
   
  +# Copy packed javascript from the webpack worker
   COPY --chown=python:python --from=webpack /app/octopus/blocktopus/resources/blockly/pack /pack/
  +
  +# Copy rest of source
   COPY --chown=python:python . ./
  -
  -# RUN dos2unix bin/docker-entrypoint-web
  -
  -# RUN python tools/build.py
  -
  -# RUN dos2unix start.sh
  -# RUN ["chmod", "+x", "start.sh"]
  -
  -# Start the platform
  -#CMD ./start.sh
  -
  -# ENTRYPOINT ["/app/bin/docker-entrypoint-web"]
   
   CMD ["python", "-m", "octopus.blocktopus.server"]
   
  
positive.code: 
  USER python
  
  COPY --chown=python:python requirements*.txt octopus-plugins.txt ./
  COPY --chown=python:python bin/ ./bin
  
  
negative.code: RUN mkdir -p octopus/blocktopus/resources/blockly/pack/ && mkdir -p octopus/blocktopus/blockly/ && chown node:node -R octopus
  COPY --chown=node:node octopus/blocktopus/blockly octopus/blocktopus/blockly
  
  RUN if [ "${NODE_ENV}" != "development" ]; then \
    yarn run build; fi
  
  CMD ["bash"]
  
  #
  # App
  #
  
  FROM python:3.9.5-slim-buster AS app
  