forked from brave/brave-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 699 Bytes
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
FROM node:8-stretch
RUN apt-get update && apt-get install -y \
bison \
build-essential \
curl \
g++-multilib \
gcc-multilib \
git \
gperf \
libgnome-keyring-dev \
libnotify-dev \
libssl-dev \
lsb-release \
ninja-build \
python-pip \
sudo
RUN npm install -g node-gyp@3.3.1
RUN pip install Jinja2==2.8.1
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install sccache
RUN echo "sccache = /root/.cargo/bin/sccache" > /root/.npmrc
# BLB source code. Mount ./browser-laptop-bootstrap from the host to here.
WORKDIR /src
VOLUME /src
# Build cache. Mount ./sccache from the host to here.
VOLUME /root/.cache/sccache
CMD bash