File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 5
5
# Compiling Rust to Wasm with the LLVM wasm-backend (without Emscripten)
6
6
# https://gist.github.com/LukasKalbertodt/821ab8b85a25f4c54544cc43bed2c39f
7
7
8
- # enviroment
9
- ENV PATH /root/.cargo/bin:/rust-wasm-bin/llvm/bin:/rust-wasm-bin/binaryen/bin:${PATH}
10
-
11
- # working directory of container
12
- VOLUME ["/work" ]
13
- WORKDIR /work
14
-
15
- # entrypoint script
16
- ENTRYPOINT [ "rust-wasm.sh" ]
17
-
18
- ADD "rust-wasm.sh" /usr/local/bin/
19
-
20
8
# install deps
21
9
RUN cd / \
22
- && chmod +x /usr/local/bin/rust-wasm.sh \
23
10
# apt source
24
11
# && sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|" /etc/apt/sources.list \
25
12
# && sed -i "s|security.debian.org|mirrors.ustc.edu.cn/debian-security|" /etc/apt/sources.list \
@@ -54,3 +41,15 @@ RUN cd / \
54
41
&& apt-get autoclean -y \
55
42
&& apt-get clean -y \
56
43
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /rust-wasm
44
+
45
+ # enviroment
46
+ ENV PATH /root/.cargo/bin:/rust-wasm-bin/llvm/bin:/rust-wasm-bin/binaryen/bin:${PATH}
47
+
48
+ # working directory of container
49
+ VOLUME ["/work" ]
50
+ WORKDIR /work
51
+
52
+ # entrypoint script
53
+ ENTRYPOINT [ "rust-wasm.sh" ]
54
+
55
+ ADD "rust-wasm.sh" /usr/local/bin/
You can’t perform that action at this time.
0 commit comments