summaryrefslogtreecommitdiff
path: root/libc/ci/docker/wasm32-unknown-emscripten/Dockerfile
blob: 4de9e7475559d853213396f27e047e536347ec27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:19.04

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    ca-certificates \
    g++ \
    make \
    file \
    curl \
    gcc \
    git \
    libc6-dev \
    libxml2 \
    python \
    cmake \
    sudo \
    gdb \
    xz-utils

COPY emscripten.sh /
RUN bash /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"]