1FROM ubuntu:24.10 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 xz-utils \ 18 bzip2 19 20COPY emscripten.sh / 21RUN /emscripten.sh 22 23ENV PATH=$PATH:/rust/bin \ 24 CARGO_TARGET_ASMJS_UNKNOWN_EMSCRIPTEN_RUNNER=node 25 26# `-g4` is used by default which causes a linking error. 27# Using `-g3` not to generate a source map. 28ENV EMCC_CFLAGS=-g3 29 30COPY emscripten-entry.sh / 31ENTRYPOINT ["/emscripten-entry.sh"] 32