From 741ae7f5452b2db41438787c493fc281847e1001 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Wed, 4 Nov 2020 23:45:05 -0800 Subject: [PATCH] Fix docker build Alpine does not support python3 yet, but depot_tools enabled python3 by default recently. Disable python3 for now. Fixes #763. Change-Id: I57cd414702e89cafbe1b8beee810f89760129d10 --- Dockerfile | 4 ++++ packager/testing/dockers/Alpine_Dockerfile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5eeb2ae9c4..e8e3ea37c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,10 @@ RUN sed -i \ /usr/include/malloc.h ENV GYP_DEFINES='clang=0 use_experimental_allocator_shim=0 use_allocator=none musl=1' +# Alpine does not support python3 yet, but depot_tools enabled python3 +# by default. Disable python3 explicitly for now. +# See https://github.com/google/shaka-packager/issues/763 for details. +ENV GCLIENT_PY3=0 # Build shaka-packager WORKDIR shaka_packager diff --git a/packager/testing/dockers/Alpine_Dockerfile b/packager/testing/dockers/Alpine_Dockerfile index a4dcfd3386..5a0aa2b3f8 100644 --- a/packager/testing/dockers/Alpine_Dockerfile +++ b/packager/testing/dockers/Alpine_Dockerfile @@ -16,6 +16,10 @@ RUN sed -i \ /usr/include/malloc.h ENV GYP_DEFINES='clang=0 use_experimental_allocator_shim=0 use_allocator=none musl=1' +# Alpine does not support python3 yet, but depot_tools enabled python3 +# by default. Disable python3 explicitly for now. +# See https://github.com/google/shaka-packager/issues/763 for details. +ENV GCLIENT_PY3=0 # Build and run this docker by mapping shaka-packager with # -v "shaka-packager:/shaka-packager".