2021-06-19 15:16:24 +05:30
|
|
|
FROM ubuntu:20.04
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
RUN apt-get update &&\
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
2021-07-12 11:29:48 +05:30
|
|
|
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential
|
2021-06-19 15:16:24 +05:30
|
|
|
|
|
|
|
ENV user lg
|
|
|
|
|
2021-07-12 17:08:57 +05:30
|
|
|
#RUN useradd -m -d /home/${user} ${user} && \
|
|
|
|
# chown -R ${user} /home/${user} && \
|
|
|
|
# adduser ${user} sudo && \
|
|
|
|
# echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
#USER ${user}
|
2021-06-19 15:16:24 +05:30
|
|
|
|
2021-07-12 17:12:09 +05:30
|
|
|
RUN mkdir -p /home/${user} && \
|
2021-07-12 17:08:57 +05:30
|
|
|
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
2021-06-19 15:16:24 +05:30
|
|
|
|
|
|
|
WORKDIR /home/${user}
|
|
|
|
|
|
|
|
RUN wget https://chromium.googlesource.com/chromium/src/+/refs/tags/$VERSION/build/install-build-deps.sh?format=TEXT -O install-build-deps.sh.base64 \
|
|
|
|
&& \
|
|
|
|
wget https://chromium.googlesource.com/chromium/src/+/refs/tags/$VERSION/build/install-build-deps-android.sh?format=TEXT -O install-build-deps-android.sh.base64 \
|
|
|
|
&& \
|
2021-07-12 11:58:24 +05:30
|
|
|
base64 -d install-build-deps.sh.base64 >install-build-deps.sh && \
|
|
|
|
base64 -d install-build-deps-android.sh.base64 >install-build-deps-android.sh && \
|
|
|
|
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 && \
|
2021-07-12 11:38:43 +05:30
|
|
|
sudo ./install-build-deps-android.sh --no-prompt
|
2021-06-19 15:16:24 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|