bromite-buildtools/images/build-deps/Dockerfile

48 lines
1.5 KiB
Docker
Raw Normal View History

2021-06-19 15:16:24 +05:30
FROM ubuntu:20.04
ARG VERSION
2021-07-29 18:38:20 +05:30
ARG HTTP_PROXY
ENV HTTP_PROXY=$HTTP_PROXY
ENV http_proxy=$HTTP_PROXY
ENV HTTPS_PROXY=$HTTP_PROXY
ENV https_proxy=$HTTP_PROXY
RUN touch /etc/apt/apt.conf.d/proxy.conf && \
echo "Acquire::http::Proxy \"$HTTP_PROXY\";" >/etc/apt/apt.conf.d/proxy.conf
2021-07-13 18:28:22 +05:30
RUN dpkg --add-architecture i386
2021-06-19 15:16:24 +05:30
RUN apt-get update &&\
DEBIAN_FRONTEND=noninteractive \
2022-07-08 23:02:23 +05:30
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential lib32gcc-9-dev g++-multilib
2021-06-19 15:16:24 +05:30
ENV user lg
2021-07-12 18:56:48 +05:30
RUN useradd -m -d /home/${user} ${user} && \
chown -R ${user} /home/${user} && \
adduser ${user} sudo && \
chmod 4755 /usr/bin/sudo && \
2021-07-12 17:08:57 +05:30
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2021-07-12 18:56:48 +05:30
USER ${user}
#RUN mkdir -p /home/${user} && \
# echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2021-06-19 15:16:24 +05:30
WORKDIR /home/${user}
RUN wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/install-build-deps.sh install-build-deps.sh \
2021-06-19 15:16:24 +05:30
&& \
wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/install-build-deps-android.sh \
2021-06-19 15:16:24 +05:30
&& \
2021-07-12 11:58:24 +05:30
sed -i 's/snapcraft/wget/' install-build-deps.sh && \
chmod +x ./install-build-deps.sh && \
2021-07-12 11:33:38 +05:30
chmod +x ./install-build-deps-android.sh && \
2021-07-12 12:48:43 +05:30
sudo ./install-build-deps.sh --no-prompt --lib32 --no-chromeos-fonts && \
2022-07-08 23:02:23 +05:30
sudo ./install-build-deps-android.sh --no-prompt
2021-06-19 15:16:24 +05:30
https://raw.githubusercontent.com/chromium/chromium/104.0.5112.63/build/install-build-deps-android.sh
2021-06-19 15:16:24 +05:30