How to multiple mount volumes when dockerfile has multiple volumes as well

Trying to deploy directus (via dockerfile using their docker image) and they use 3 volumes,

WORKDIR /directus
VOLUME [/directus/database /directus/extensions /directus/uploads]

In fly.toml, if I mount the volume to /directus, the dockerfile doesn’t actually think those volumes exist and gives an error.

[mounts]
  destination = "/directus/database"
  source = "directus_vol"

I already know you can’t mount multiple volumes, so I can’t do a new volume for each one of those volumes in docker.

Is there anyway to replicate the same results given fly doesn’t allow for multiple volume mounts?

Volumes aren’t available during builds. You can probably create another Dockerfile with that line removed, and it might work.