FROM alpine:3.11 # Install utilities, libraries, and dev tools. RUN apk add --no-cache \ bash curl \ bsd-compat-headers c-ares-dev linux-headers \ build-base git ninja python2 python3 # Install depot_tools. WORKDIR / RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ENV PATH $PATH:/depot_tools # Alpine uses musl which does not have mallinfo defined in malloc.h. Define the # structure to workaround a Chromium base bug. RUN sed -i \ '/malloc_usable_size/a \\nstruct mallinfo {\n int arena;\n int hblkhd;\n int uordblks;\n};' \ /usr/include/malloc.h ENV GYP_DEFINES='musl=1' # Bypass VPYTHON included by depot_tools, which no longer works in Alpine. ENV VPYTHON_BYPASS="manually managed python not supported by chrome operations" # Build and run this docker by mapping shaka-packager with # -v "shaka-packager:/shaka-packager".