2018-08-15 00:21:29 +00:00
|
|
|
FROM ubuntu:18.04
|
2017-12-07 22:41:14 +00:00
|
|
|
|
2021-10-13 18:00:37 +00:00
|
|
|
# Install utilities, libraries, and dev tools.
|
|
|
|
RUN apt-get update && apt-get install -y apt-utils
|
|
|
|
RUN apt-get install -y \
|
|
|
|
curl \
|
2021-10-12 21:55:13 +00:00
|
|
|
libc-ares-dev \
|
2021-10-13 18:00:37 +00:00
|
|
|
build-essential git python python3
|
2017-12-07 22:41:14 +00:00
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
# Default to python2 because our build system is ancient.
|
|
|
|
RUN ln -sf python2 /usr/bin/python
|
|
|
|
|
2017-12-07 22:41:14 +00:00
|
|
|
# Install depot_tools.
|
2022-03-09 00:46:18 +00:00
|
|
|
RUN git clone -b chrome/4147 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
|
|
RUN touch depot_tools/.disable_auto_update
|
2017-12-07 22:41:14 +00:00
|
|
|
ENV PATH /depot_tools:$PATH
|
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
# Bypass VPYTHON included by depot_tools. Prefer the system installation.
|
|
|
|
ENV VPYTHON_BYPASS="manually managed python not supported by chrome operations"
|
|
|
|
|
2017-12-07 22:41:14 +00:00
|
|
|
# Build and run this docker by mapping shaka-packager with
|
|
|
|
# -v "shaka-packager:/shaka-packager".
|