anchor.diff:  #                        |
   #              +---------+--------+
   #              |                  |
  -#              |  yarn-base       +<------------------------+
  -#              |                  |                         |
  -#              +---------+--------+                         |
  -#                        ^                                  |
  -#                        |                                  |
  -#                        |                                  |
  -#              +---------+--------+              +----------+-------+
  -#              |                  |              |                  |
  -#              |  yarn-deps       |              |  yarn-deps-prod  |
  -#              |                  |              |                  |
  -#              +---------+--------+              +----------+-------+
  -#                        ^                                  ^
  -#                        |                                  |
  -#                        |                                  |
  -#              +---------+--------+                         |
  -#              |                  |                         |
  -#              |  builder-src     |                         |
  -#              |                  |                         |
  -#              +---+-----------+--+                         |
  -#                  ^           ^                            |
  -#                  |           |                            |
  -#                  |           |                            |
  -#  +---------------+--+    +---+--------------+             |
  -#  |                  |    |                  |             |
  -#  |  builder-assets  |    |  builder-server  |             |
  -#  |                  |    |                  |             |
  -#  +---------------+--+    +---+--------------+             |
  -#                  ^           ^                            |
  -#                  |           |                            |
  -#                  |           |                            |
  -#              +---+-----------+--+                         |
  -#              |                  |                         |
  -#              |  builder         +<------------------+     |
  -#              |                  |                   |     |
  -#              +--------+---------+                   |     |
  -#                       ^                             |     |
  -#                       |                             |     |
  -#                       |                             |     |
  -#              +--------+---------+               +---+-----+--------+
  -#              |                  |               |                  |
  -#              |  electron-runner |               |  production      |
  -#              |                  |               |                  |
  -#              +------------------+               +------------------+
  +#              |  yarn-base       +<------------------------------------------------+
  +#              |                  |                                                 |
  +#              +---------+--------+                                                 |
  +#                        ^                                                          |
  +#                        |                                                          |
  +#                        |                                                          |
  +#              +---------+--------+                                      +----------+-------+
  +#              |                  |                                      |                  |
  +#              |  yarn-deps       |                                      |  yarn-deps-prod  |
  +#              |                  |                                      |                  |
  +#              +---------+--------+                                      +----------+-------+
  +#                        ^                                                          ^
  +#                        |                                                          |
  +#                        |                                                          |
  +#              +---------+--------+                                                 |
  +#              |                  |                                                 |
  +#              |  builder-src     |<------------------------------+                 |
  +#              |                  |                               |                 |
  +#              +---+-----------+--+                               |                 |
  +#                  ^           ^                                  |                 |
  +#                  |           |                                  |                 |
  +#                  |           |                                  |                 |
  +#  +---------------+--+    +---+--------------+    +-------------------------+      |
  +#  |                  |    |                  |    |                         |      |
  +#  |  builder-assets  |    |  builder-server  |    |  builder-assets-legacy  |      |
  +#  |                  |    |                  |    |                         |      |
  +#  +---------------+--+    +---+--------------+    +------------------------ +      |
  +#                  ^           ^                                  ^                 |
  +#                  |           |                                  |                 |
  +#                  |           |                                  |                 |
  +#              +---+-----------+--+                               |                 |
  +#              |                  |-------------------------------+                 |
  +#              |  builder         +<------------------------------------------+     |
  +#              |                  |                                           |     |
  +#              +--------+---------+                                           |     |
  +#                       ^                                                     |     |
  +#                       |                                                     |     |
  +#                       |                                                     |     |
  +#              +--------+---------+                                       +---+-----+--------+
  +#              |                  |                                       |                  |
  +#              |  electron-runner |                                       |  production      |
  +#              |                  |                                       |                  |
  +#              +------------------+                                       +------------------+
   
   # ---------------------------------------------------------
   # Base build dependencies
  
positive.code:   ./
  
  # ---------------------------------------------------------
  # Compile assets
  # ---------------------------------------------------------
  FROM builder-src as builder-assets
  
  # Build legacy application
  RUN yarn build:assets:legacy
  
negative.code: COPY ./scripts ./scripts
  
  # Client assets
  COPY --from=builder-assets-legacy /app/manifest.json .
  COPY --from=builder-assets-legacy /app/public ./public
  COPY --from=builder-assets-legacy /app/src ./src
  
  # Client (Novo) assets
  COPY --from=builder-assets /app/manifest-novo.json .
  COPY --from=builder-assets /app/public ./public
  
  # Server assets
  COPY --from=builder-server /app/server.dist.js .
  