mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-01 21:34:09 -04:00
0e57942c36
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
36 lines
775 B
Docker
36 lines
775 B
Docker
FROM ubuntu:25.04
|
|
|
|
# This is a workaround to avoid the interaction with tzdata.
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=America/New_York
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bzip2 \
|
|
ca-certificates \
|
|
cmake \
|
|
curl \
|
|
file \
|
|
g++ \
|
|
gcc \
|
|
gdb \
|
|
git \
|
|
libc6-dev \
|
|
libxml2 \
|
|
make \
|
|
python3 \
|
|
tzdata \
|
|
sudo \
|
|
xz-utils
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python & \
|
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
|
COPY emscripten.sh /
|
|
RUN /emscripten.sh
|
|
|
|
ENV PATH=$PATH:/rust/bin \
|
|
CARGO_TARGET_WASM32_UNKNOWN_EMSCRIPTEN_RUNNER=node-wrapper.sh
|
|
|
|
COPY emscripten-entry.sh /
|
|
COPY docker/wasm32-unknown-emscripten/node-wrapper.sh /usr/local/bin/node-wrapper.sh
|
|
ENTRYPOINT ["/emscripten-entry.sh"]
|