Skip to content

Commit e17b0ec

Browse files
committed
Dockerfile: Switch to using base images by arch
Private DTs do not have base images, so switching to using base images by arch simplifies automated testing for them. We also remove UDEV since it's not needed for this particular application and throws the following warning in the application logs: balena-hello-world Unable to start udev, container must be run in privileged mode to start udev! Change-type: patch Signed-off-by: Alexandru Costache <[email protected]>
1 parent 9e8bb2f commit e17b0ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile.template

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# base-image for node on any machine using a template variable,
22
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/#dockerfile-templates
33
# and about balena base images here: https://www.balena.io/docs/reference/base-images/base-images/
4-
FROM balenalib/%%BALENA_MACHINE_NAME%%-node:14-buster-run
4+
FROM balenalib/%%BALENA_ARCH%%-node:14-buster-run
55

66
# use `install_packages` if you need to install dependencies,
77
# for instance if you need git, just uncomment the line below.
@@ -20,8 +20,5 @@ RUN JOBS=MAX npm install --production --unsafe-perm && npm cache verify && rm -r
2020
# This will copy all files in our root to the working directory in the container
2121
COPY . ./
2222

23-
# Enable udevd so that plugged dynamic hardware devices show up in our container.
24-
ENV UDEV=1
25-
2623
# server.js will run when container starts up on the device
2724
CMD ["npm", "start"]

0 commit comments

Comments
 (0)