Skip to content

Commit 3d290f8

Browse files
committed
fix: use python3 or python2 for alpine
In alpine3.12, they removed the python package in favor of either python2 or python3. https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.12.0#python2_no_longer_provides_python_and_python-devel However, nodejs 12, 10 require python2 for building from source. I added a change in update.sh that swaps out python3 for python2 in those older versions for alpine Dockerfiles. Refs #1330
1 parent 3a5c226 commit 3d290f8

File tree

12 files changed

+20
-11
lines changed

12 files changed

+20
-11
lines changed

10/alpine3.10/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

10/alpine3.11/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

10/alpine3.9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

12/alpine3.10/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

12/alpine3.11/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

12/alpine3.12/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

12/alpine3.9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python2 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

14/alpine3.10/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python3 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

14/alpine3.11/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python3 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

14/alpine3.12/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN addgroup -g 1000 node \
3333
libgcc \
3434
linux-headers \
3535
make \
36-
python \
36+
python3 \
3737
# gpg keys listed at https://github.com/nodejs/node#release-keys
3838
&& for key in \
3939
4ED778F539E3634C779C87C6D7062848A1AB005C \

0 commit comments

Comments
 (0)