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
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.