# Can machine tags be used when building local images?

**URL:** <https://forums.balena.io/t/can-machine-tags-be-used-when-building-local-images/4433>\
**Category:** Product support\
**Tags:** raspberrypi3, docker\
**Created:** [November 15, 2018, 9:54pm UTC](https://forums.balena.io/t/can-machine-tags-be-used-when-building-local-images/4433 "2018-11-15T21:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nckswt](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nckswt/32/368_2.png) [@nckswt](https://forums.balena.io/u/nckswt)\
**Post date:** [November 15, 2018, 9:54pm UTC](https://forums.balena.io/t/can-machine-tags-be-used-when-building-local-images/4433/1 "2018-11-15T21:54:13Z")

</div>

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](https://github.com/balena-io/resin-electronjs).

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](https://www.balena.io/docs/learn/develop/dockerfile/#dockerfile-templates) locally? Any documentation on how to do it with a [multicontainer build](https://www.balena.io/docs/learn/develop/multicontainer/)?

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [November 20, 2018, 10:56am UTC](https://forums.balena.io/t/can-machine-tags-be-used-when-building-local-images/4433/4 "2018-11-20T10:56:46Z")

</div>

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