I tried using the code found here:
FROM balenalib/%%BALENA_MACHINE_NAME%%-ubuntu:latest
RUN sudo apt-get -y update && \
sudo apt-get -y install bluez build-essential cmake git libglib2.0-dev dnsmasq network-manager openjdk-8-jdk pkg-config sqlite3 wireless-tools && \
sudo apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64
ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
WORKDIR /usr/src/wifi-connect
RUN curl https://api.github.com/repos/balena-io/wifi-connect/releases/latest -s \
| grep -hoP 'browser_download_url": "\K.*%%BALENA_ARCH%%\.tar\.gz' \
| xargs -n1 curl -Ls \
| tar -xvz -C /usr/src/wifi-connect/
WORKDIR /usr/src/wifi-connect/
COPY ./start.sh ./
CMD ./start.sh
As outlined here: Wifi Connect not displaying login credentials page on Raspberry Pi 3B+
But alas, the wifi credentials do not show up. I also found this link: https://github.com/balena-io/wifi-connect/issues/164
which suggests changing the WORKDIR in docker.template. Thoughts?