Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from balena-labs-projects/update-node
Browse files Browse the repository at this point in the history
Updated base images and python
  • Loading branch information
phil-d-wilson authored Aug 11, 2023
2 parents 45db0c8 + b8b8256 commit 88cea5e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 61 deletions.
42 changes: 0 additions & 42 deletions node-red/Dockerfile.raspberry-pi

This file was deleted.

8 changes: 4 additions & 4 deletions node-red/Dockerfile.raspberry-pi2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# Build step
###
FROM balenalib/raspberry-pi2-debian-node:12-stretch-build as build
FROM balenalib/raspberry-pi2-debian-node:16-bookworm-build as build

WORKDIR /usr/src/app
COPY ./app/package.json package.json
Expand All @@ -15,12 +15,12 @@ RUN JOBS=MAX npm install -g --production --unsafe-perm \
###
# Runtime image
###
FROM balenalib/raspberry-pi2-debian-node:12-stretch-run
FROM balenalib/raspberry-pi2-debian-node:16-bookworm-run

RUN apt-get update && apt-get install -yq --no-install-recommends \
rpi.gpio \
python-dev \
python-rpi.gpio \
python3-dev \
python3-rpi.gpio \
libatomic1 \
git \
openssh-client \
Expand Down
8 changes: 4 additions & 4 deletions node-red/Dockerfile.raspberrypi3
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# Build step
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-build as build
FROM balenalib/raspberrypi3-debian-node:16-bookworm-build as build

WORKDIR /usr/src/app
COPY ./app/package.json package.json
Expand All @@ -15,12 +15,12 @@ RUN JOBS=MAX npm install -g --production --unsafe-perm \
###
# Runtime image
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-run
FROM balenalib/raspberrypi3-debian-node:16-bookworm-run

RUN apt-get update && apt-get install -yq --no-install-recommends \
rpi.gpio \
python-dev \
python-rpi.gpio \
python3-dev \
python3-rpi.gpio \
libatomic1 \
git \
openssh-client \
Expand Down
8 changes: 4 additions & 4 deletions node-red/Dockerfile.raspberrypi3-64
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# Build step
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-build as build
FROM balenalib/raspberrypi3-debian-node:16-bookworm-build as build

WORKDIR /usr/src/app
COPY ./app/package.json package.json
Expand All @@ -15,12 +15,12 @@ RUN JOBS=MAX npm install -g --production --unsafe-perm \
###
# Runtime image
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-run
FROM balenalib/raspberrypi3-debian-node:16-bookworm-run

RUN apt-get update && apt-get install -yq --no-install-recommends \
rpi.gpio \
python-dev \
python-rpi.gpio \
python3-dev \
python3-rpi.gpio \
libatomic1 \
git \
openssh-client \
Expand Down
8 changes: 4 additions & 4 deletions node-red/Dockerfile.raspberrypi4-64
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# Build step
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-build as build
FROM balenalib/raspberrypi3-debian-node:16-bookworm-build as build

WORKDIR /usr/src/app
COPY ./app/package.json package.json
Expand All @@ -15,12 +15,12 @@ RUN JOBS=MAX npm install -g --production --unsafe-perm \
###
# Runtime image
###
FROM balenalib/raspberrypi3-debian-node:12-stretch-run
FROM balenalib/raspberrypi3-debian-node:16-bookworm-run

RUN apt-get update && apt-get install -yq --no-install-recommends \
rpi.gpio \
python-dev \
python-rpi.gpio \
python3-dev \
python3-rpi.gpio \
libatomic1 \
git \
openssh-client \
Expand Down
6 changes: 3 additions & 3 deletions node-red/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# Build step
###
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:12-stretch-build as build
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:16-bookworm-build as build

WORKDIR /usr/src/app
COPY ./app/package.json package.json
Expand All @@ -15,10 +15,10 @@ RUN JOBS=MAX npm install -g --production --unsafe-perm \
###
# Runtime image
###
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:12-stretch-run
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian-node:16-bookworm-run

RUN apt-get update && apt-get install -yq --no-install-recommends \
python-dev \
python3-dev \
libatomic1 \
git \
openssh-client \
Expand Down

0 comments on commit 88cea5e

Please sign in to comment.