Skip to content

Commit

Permalink
Merge pull request #44 from balena-io-examples/use_base_images_by_arch
Browse files Browse the repository at this point in the history
Dockerfile: Switch to using base images by arch
  • Loading branch information
acostach committed Jun 22, 2022
2 parents 9e8bb2f + e17b0ec commit c1f2bba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# base-image for node on any machine using a template variable,
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/#dockerfile-templates
# and about balena base images here: https://www.balena.io/docs/reference/base-images/base-images/
FROM balenalib/%%BALENA_MACHINE_NAME%%-node:14-buster-run
FROM balenalib/%%BALENA_ARCH%%-node:14-buster-run

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

# Enable udevd so that plugged dynamic hardware devices show up in our container.
ENV UDEV=1

# server.js will run when container starts up on the device
CMD ["npm", "start"]

0 comments on commit c1f2bba

Please sign in to comment.