File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
FROM centos:latest
2
+ COPY install_rust.sh /root/
2
3
RUN echo "unsafe-perm = true" > /root/.npmrc
3
4
RUN echo "{ \" allow_root\" : true }" > /root/.bowerrc
4
5
RUN curl -sL https://rpm.nodesource.com/setup_10.x | bash -
@@ -16,9 +17,13 @@ VOLUME /src
16
17
VOLUME /build
17
18
WORKDIR /build
18
19
20
+ # Install chrome
19
21
RUN curl -sL https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm > /root/chrome.rpm
20
22
RUN yum localinstall -y /root/chrome.rpm
21
23
24
+ # Install rust
25
+ RUN bash /root/install_rust.sh
26
+
22
27
# USER user
23
28
24
29
# RUN npm install
Original file line number Diff line number Diff line change
1
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs > /root/rustup.sh
2
+ sh /root/rustup.sh -y
3
+ source /root/.cargo/env
4
+ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
5
+ rustup toolchain install nightly
6
+ rustup override set nightly
7
+ cat /root/.cargo/env >> /etc/bashrc
You can’t perform that action at this time.
0 commit comments