Can machine tags be used when building local images?

I’d like to develop an app that uses an X environment in a local docker container before pushing it to a device. This is mainly for faster and easier development. My project follows the structure of this example kiosk app.

I wanted to do something like FROM resin/%%BALENA_MACHINE_NAME%%-python:3.7-stretch at the top of my Dockerfile.template, but I ran into trouble trying to run docker-compose up (as expected).

Is it possible to use a dockerfile Template locally? Any documentation on how to do it with a multicontainer build?

Hi,
You should be able to build the services using balena build ----deviceType intel-nuc --arch amd64 within the project folder.
Cheers,
Andreas

1 Like