Skip to content

Commit 23c4530

Browse files
committed
Reverted to debian, wifi connect now runs but not successfully
1 parent 3523d3a commit 23c4530

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Dockerfile.template

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM python:3.12-alpine3.22
1+
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/
2+
FROM python:3.13-slim-bookworm
23

3-
RUN apk add --no-cache grep dnsmasq curl wireless-tools
4-
# freetype-dev \
5-
# libjpeg-turbo-dev \
6-
# gcc \
7-
# musl-dev \
8-
# linux-headers
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
curl \
6+
dnsmasq \
7+
wireless-tools
98

109
# use latest version. If specific version is required, it should be provided as vX.Y.Z, e.g v4.11.37
1110
ARG VERSION="latest"
@@ -49,5 +48,7 @@ COPY . ./
4948

5049
COPY scripts/start.sh .
5150

51+
ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
52+
5253
# main.py will run when container starts up on the device
5354
CMD ["sh", "./start.sh"]

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ services:
44
balena-hello-world:
55
build: .
66
ports:
7-
- "80:80"
7+
- "80:80"
8+
volumes:
9+
- /run/dbus:/host/run/dbus:ro
10+
labels:
11+
io.balena.features.dbus: "1"

0 commit comments

Comments
 (0)