forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.linux
69 lines (62 loc) · 1.83 KB
/
Dockerfile.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM ubuntu:xenial
RUN dpkg-reconfigure debconf -f noninteractive -p critical
RUN apt-get update
# expect still prompts for region/tz info even in a noninteractive session
RUN bash -c 'apt-get install tzdata -y'
RUN apt-get install -y \
alsa \
awscli \
ccache \
clang \
curl \
git \
libasound2-dev \
libcairo2-dev \
libdbus-glib-1-dev \
libgconf2-dev \
libgtk2.0-dev \
libgtk-3-dev \
libpango1.0-dev \
libpulse-dev \
libxt-dev \
llvm \
mercurial \
pkg-config \
python \
sudo \
yasm \
wget
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
# mach kept failing to run this so its commented out in /home/ubuntu/python/mozboot/mozboot/base.py
RUN apt-get install -y \
autoconf2.13 \
build-essential \
nodejs \
python3 \
python3-dev \
python-dev \
python-pip \
python-setuptools \
unzip \
uuid \
zip
ENV SHELL /bin/bash
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# prevent libnotify-send attempt which will fail
ENV MOZ_NOSPAM 1
ENV MOZCONFIG .mozconfig-x86_64-unknown-linux-gnu
# help classic env with trouble finding rustc/cargo
ENV PATH ${PATH}:/home/ubuntu/.cargo/bin
RUN adduser ubuntu
RUN echo 'ubuntu ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/ubuntu
ADD . /home/ubuntu/
RUN mkdir /home/ubuntu/.mozbuild
WORKDIR /home/ubuntu
RUN chown -R ubuntu /home/ubuntu
USER ubuntu
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN rustup default 1.49.0
#RUN python /root/bootstrap.py --application-choice=browser --vcs git --no-interactive
RUN ./mach bootstrap --application-choice=browser --no-interactive
ENTRYPOINT ./mach build && ./mach package && ./mach package-multi-locale --locales en-US en-GB zh-CN zh-TW ja ko ru fr es-ES es-MX pt-PT pt-BR de pl nl da nn-NO sv-SE el it cs hu lt th id vi ar