# Build wifi-connect from Github Repository

**URL:** <https://forums.balena.io/t/build-wifi-connect-from-github-repository/241459>\
**Category:** Product support\
**Tags:** docker\
**Created:** [January 24, 2021, 7:47pm UTC](https://forums.balena.io/t/build-wifi-connect-from-github-repository/241459 "2021-01-24T19:47:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KuhlTime](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/kuhltime/32/5314_2.png) [@KuhlTime](https://forums.balena.io/u/KuhlTime)\
**Post date:** [January 24, 2021, 7:47pm UTC](https://forums.balena.io/t/build-wifi-connect-from-github-repository/241459/1 "2021-01-24T19:47:41Z")

</div>

Hi Balena Community,

I am trying to create a docker-compose file that builds the wifi-connect image directly from the official Github repository. To do that I found that you can provide a url to the repository you would like to build. Because that returned an error:  
`Could not detect project type: Service wifi-connect: Could not find a Dockerfile for this service`  
I have tried to set the Dockerfile manually using the `dockerfile` option, but that didn’t work either and I got the following error message:  
`Could not detect project type: Service wifi-connect: Specified file not found or is invalid: Dockerfile.template`

Docker Reference: [https://docs.docker.com/compose/compose-file/compose-file-v2/#context](https://docs.docker.com/compose/compose-file/compose-file-v2/#context)

```
version: "2.1"

services:
  ...

  wifi-connect:
    build:
      context: https://github.com/balena-io/wifi-connect.git
      dockerfile: Dockerfile.template
    network_mode: "host"
    labels:
      io.balena.features.dbus: "1"
    cap_add:
      - NET_ADMIN
    environment:
      DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"

```

Maybe one of you knows an answer to this problem.

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [January 25, 2021, 10:40am UTC](https://forums.balena.io/t/build-wifi-connect-from-github-repository/241459/4 "2021-01-25T10:40:57Z")

</div>

Hi, thanks for reaching out. Unfortunatley URL to git repositories are not supported by the Balena supervisor. Check the documentation at [https://www.balena.io/docs/reference/supervisor/docker-compose/#supported-fields](https://www.balena.io/docs/reference/supervisor/docker-compose/#supported-fields).

---

<div class="post-metadata">

**Author:** ![KuhlTime](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/kuhltime/32/5314_2.png) [@KuhlTime](https://forums.balena.io/u/KuhlTime)\
**Post date:** [January 25, 2021, 11:06am UTC](https://forums.balena.io/t/build-wifi-connect-from-github-repository/241459/6 "2021-01-25T11:06:25Z")

</div>

Thanks. I haven’t seen that.
