Skip to content

Commit 2ed6905

Browse files
committed
Merge layer
1 parent e227db2 commit 2ed6905

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ LABEL maintainer="OpenGG <[email protected]>"
55
# Compiling Rust to Wasm with the LLVM wasm-backend (without Emscripten)
66
# https://gist.github.com/LukasKalbertodt/821ab8b85a25f4c54544cc43bed2c39f
77

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+
818
ADD "rust-wasm.sh" /usr/local/bin/
919

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 \
1123
# apt source
1224
# && sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|" /etc/apt/sources.list \
1325
# && 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 \
4254
&& apt-get autoclean -y \
4355
&& apt-get clean -y \
4456
&& 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" ]

0 commit comments

Comments
 (0)