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
This commit is contained in:
KongQun Yang 2020-11-04 23:45:05 -08:00
parent 8e85862bda
commit 741ae7f545
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@ RUN sed -i \
/usr/include/malloc.h /usr/include/malloc.h
ENV GYP_DEFINES='clang=0 use_experimental_allocator_shim=0 use_allocator=none musl=1' 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 # Build shaka-packager
WORKDIR shaka_packager WORKDIR shaka_packager

View File

@ -16,6 +16,10 @@ RUN sed -i \
/usr/include/malloc.h /usr/include/malloc.h
ENV GYP_DEFINES='clang=0 use_experimental_allocator_shim=0 use_allocator=none musl=1' 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 # Build and run this docker by mapping shaka-packager with
# -v "shaka-packager:/shaka-packager". # -v "shaka-packager:/shaka-packager".