compose build dependencies

version: '2.4'

services:
  service-core:
    image: custom/service-core
    build:
      context: .
      dockerfile: service-core.dockerfile

  service-base:
    image: custom/service-base
    build:
      context: .
      dockerfile: service-base.dockerfile
    depends_on:
      - service-core

service-base.dockerfile

FROM custom/service-core:latest

running balena push 4fb4e72.local

results in the following error:
service-base: pull access denied for custom/service-core, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied

how do I specify to use a built image as the starting point for another image? Does balena compose have a dependency resolver?