2024-04-22 17:16:26 -04:00
|
|
|
ARG CROSS_BASE_IMAGE
|
|
|
|
FROM $CROSS_BASE_IMAGE
|
2022-01-04 15:32:48 -05:00
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y curl && \
|
2024-04-22 17:16:26 -04:00
|
|
|
curl -L https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz | tar xzf -
|
2022-01-04 15:32:48 -05:00
|
|
|
|
|
|
|
ENV TZ=Etc/UTC
|
|
|
|
COPY ./build/*.sh /chromium_build/
|
2024-08-07 06:17:50 -04:00
|
|
|
COPY ./build/install-build-deps.py /chromium_build/
|
2022-01-04 15:32:48 -05:00
|
|
|
RUN \
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
2024-08-07 06:17:50 -04:00
|
|
|
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
|
|
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
2022-01-04 15:32:48 -05:00
|
|
|
&& apt-get update && apt-get install -y lsb-release sudo \
|
2024-04-22 17:16:26 -04:00
|
|
|
&& sed -i 's/snapcraft/snapcraftnoinstall/g' /chromium_build/install-build-deps.sh \
|
|
|
|
&& /chromium_build/install-build-deps.sh --no-prompt --no-chromeos-fonts \
|
2022-01-04 15:32:48 -05:00
|
|
|
&& rm -rf /chromium_build \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-04-22 17:16:26 -04:00
|
|
|
RUN chmod +x /sccache-v0.7.7-x86_64-unknown-linux-musl/sccache
|
2022-01-04 15:32:48 -05:00
|
|
|
|
2024-04-22 17:16:26 -04:00
|
|
|
ENV SCCACHE=/sccache-v0.7.7-x86_64-unknown-linux-musl/sccache
|
2022-01-04 15:32:48 -05:00
|
|
|
ENV SCCACHE_DIR=./target/sccache
|