Skip to content

Commit 71d1514

Browse files
Merge pull request #34 from balena-io-examples/no-balenalib
Replace balenalib base images with the official ones
2 parents 8827afc + 1015001 commit 71d1514

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

balena.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
type: sw.application
2-
version: '2.0.0'
2+
version: '2.2.0'

device_tags_node/Dockerfile.template

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# base-image for node on any machine using a template variable,
2-
# see more about dockerfile templates here: http://docs.balena.io/deployment/docker-templates/
3-
# and about balena base images here: http://docs.balena.io/reference/base-images/base-images/
4-
# Note the node:slim image doesn't have node-gyp
5-
FROM balenalib/%%BALENA_ARCH%%-debian-node:18-bookworm
1+
FROM node:22-bookworm-slim
62

73
# use apt-get if you need to install dependencies,
84
# for instance if you need ALSA sound utils, just uncomment the lines below.
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# base-image for python on any machine using a template variable,
2-
# see more about dockerfile templates here: https://www.balena.io/docs/learn/develop/dockerfile/
3-
FROM balenalib/%%BALENA_ARCH%%-debian-python:3-bookworm
1+
FROM python:3-bookworm
42

5-
# use `install_packages` if you need to install dependencies,
6-
# for instance if you need git, just uncomment the line below.
7-
# RUN install_packages git
3+
# use apt-get if you need to install dependencies,
4+
# for instance if you need git, just uncomment the lines below.
5+
#RUN apt-get update && apt-get install \
6+
# git && \
7+
# apt-get clean && rm -rf /var/lib/apt/lists/*
88

99
# Set our working directory
1010
WORKDIR /usr/src/app
@@ -18,8 +18,5 @@ RUN pip install -r requirements.txt
1818
# This will copy all files in our root to the working directory in the container
1919
COPY . ./
2020

21-
# Enable udevd so that plugged dynamic hardware devices show up in our container.
22-
# ENV UDEV=1
23-
2421
# main.py will run when container starts up on the device
2522
CMD ["python","-u","src/app.py"]

repo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type: generic

0 commit comments

Comments
 (0)