Skip to content

Commit 650a552

Browse files
authored
Set python3 to be the default python for npm (#336)
1 parent c070a51 commit 650a552

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.docker/Dockerfile.alpine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ RUN chown -R node-red:root /usr/src/node-red && \
8282
rm -r /tmp/*
8383

8484
RUN npm config set cache /data/.npm --global
85+
RUN npm config set python `which python3` --global
8586

8687
USER node-red
8788

docker-custom/Dockerfile.custom

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ RUN chown -R node-red:root /usr/src/node-red && \
8080
rm -r /tmp/*
8181

8282
RUN npm config set cache /data/.npm --global
83+
RUN npm config set python `which python3` --global
8384

8485
USER node-red
8586

docker-custom/Dockerfile.debian

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ RUN chown -R node-red:root /usr/src/node-red && \
8181
rm -r /tmp/*
8282

8383
RUN npm config set cache /data/.npm --global
84+
RUN npm config set python `which python3` --global
8485

8586
USER node-red
8687

0 commit comments

Comments
 (0)