Skip to content

Commit f4e8775

Browse files
authored
Fix Python on Debian build (#490)
* Add iputils-ping to the base packages * Fix version test * Fix debian python
1 parent 2684bd2 commit f4e8775

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.docker/Dockerfile.debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ COPY .docker/scripts/entrypoint.sh .
4747
FROM base AS build
4848

4949
# Install Build tools
50-
RUN apt-get update && apt-get install -y build-essential python && \
50+
RUN apt-get update && apt-get install -y build-essential python3 python-is-python3 && \
5151
npm install --unsafe-perm --no-update-notifier --no-fund --only=production && \
5252
npm uninstall node-red-node-gpio && \
5353
cp -R node_modules prod_node_modules
@@ -79,7 +79,7 @@ COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
7979

8080
# Chown, install devtools & Clean up
8181
RUN chown -R node-red:root /usr/src/node-red && \
82-
apt-get update && apt-get install -y build-essential python-dev python3 && \
82+
apt-get update && apt-get install -y build-essential python3-dev python3 && \
8383
rm -r /tmp/*
8484

8585
RUN npm config set cache /data/.npm --global

docker-custom/Dockerfile.debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ COPY scripts/entrypoint.sh .
4848
FROM base AS build
4949

5050
# Install Build tools
51-
RUN apt-get update && apt-get install -y build-essential python && \
51+
RUN apt-get update && apt-get install -y build-essential python3 python-is-python3 && \
5252
npm install --unsafe-perm --no-update-notifier --no-fund --only=production && \
5353
npm uninstall node-red-node-gpio && \
5454
cp -R node_modules prod_node_modules
@@ -80,7 +80,7 @@ COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
8080

8181
# Chown, install devtools & Clean up
8282
RUN chown -R node-red:root /usr/src/node-red && \
83-
apt-get update && apt-get install -y build-essential python-dev python3 && \
83+
apt-get update && apt-get install -y build-essential python3-dev python3 && \
8484
rm -r /tmp/*
8585

8686
RUN npm config set cache /data/.npm --global

docker-custom/docker-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ docker build --rm --no-cache \
99
--build-arg ARCH=amd64 \
1010
--build-arg NODE_VERSION=20 \
1111
--build-arg NODE_RED_VERSION=${NODE_RED_VERSION} \
12-
--build-arg OS=bullseye-slim \
12+
--build-arg OS=bookworm-slim \
1313
--build-arg BUILD_DATE="$(date +"%Y-%m-%dT%H:%M:%SZ")" \
1414
--build-arg TAG_SUFFIX=default \
1515
--file Dockerfile.debian \

0 commit comments

Comments
 (0)