File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
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
+
8
18
ADD "rust-wasm.sh" /usr/local/bin/
9
19
10
- RUN chmod +x /usr/local/bin/rust-wasm.sh \
20
+ # install deps
21
+ RUN cd / \
22
+ && chmod +x /usr/local/bin/rust-wasm.sh \
11
23
# apt source
12
24
# && sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|" /etc/apt/sources.list \
13
25
# && sed -i "s|security.debian.org|mirrors.ustc.edu.cn/debian-security|" /etc/apt/sources.list \
@@ -42,10 +54,3 @@ RUN chmod +x /usr/local/bin/rust-wasm.sh \
42
54
&& apt-get autoclean -y \
43
55
&& apt-get clean -y \
44
56
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /rust-wasm
45
-
46
- ENV PATH /root/.cargo/bin:/rust-wasm-bin/llvm/bin:/rust-wasm-bin/binaryen/bin:${PATH}
47
-
48
- VOLUME ["/work" ]
49
- WORKDIR /work
50
-
51
- ENTRYPOINT [ "rust-wasm.sh" ]
You can’t perform that action at this time.
0 commit comments