• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ubuntu:22.04
2
3# This is a workaround to avoid the interaction with tzdata.
4ENV DEBIAN_FRONTEND=noninteractive
5ENV TZ=America/New_York
6
7RUN apt-get update
8RUN apt-get install -y --no-install-recommends tzdata
9RUN apt-get install -y --no-install-recommends \
10    ca-certificates \
11    curl \
12    gcc \
13    git \
14    libc6-dev \
15    libxml2 \
16    python3 \
17    python3-distutils \
18    xz-utils \
19    bzip2
20
21COPY emscripten.sh /
22RUN bash /emscripten.sh
23
24ENV PATH=$PATH:/rust/bin \
25    CARGO_TARGET_ASMJS_UNKNOWN_EMSCRIPTEN_RUNNER=node
26
27# `-g4` is used by default which causes a linking error.
28# Using `-g3` not to generate a source map.
29ENV EMCC_CFLAGS=-g3
30
31COPY emscripten-entry.sh /
32ENTRYPOINT ["/emscripten-entry.sh"]
33