Skip to content

Commit c1f2bba

Browse files
authored
Merge pull request #44 from balena-io-examples/use_base_images_by_arch
Dockerfile: Switch to using base images by arch
2 parents 9e8bb2f + e17b0ec commit c1f2bba

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)