12add0d91Sopenharmony_ciFROM ubuntu:22.04 22add0d91Sopenharmony_ci 32add0d91Sopenharmony_ci# This is a workaround to avoid the interaction with tzdata. 42add0d91Sopenharmony_ciENV DEBIAN_FRONTEND=noninteractive 52add0d91Sopenharmony_ciENV TZ=America/New_York 62add0d91Sopenharmony_ci 72add0d91Sopenharmony_ciRUN apt-get update 82add0d91Sopenharmony_ciRUN apt-get install -y --no-install-recommends tzdata 92add0d91Sopenharmony_ciRUN apt-get install -y --no-install-recommends \ 102add0d91Sopenharmony_ci ca-certificates \ 112add0d91Sopenharmony_ci curl \ 122add0d91Sopenharmony_ci gcc \ 132add0d91Sopenharmony_ci git \ 142add0d91Sopenharmony_ci libc6-dev \ 152add0d91Sopenharmony_ci libxml2 \ 162add0d91Sopenharmony_ci python3 \ 172add0d91Sopenharmony_ci python3-distutils \ 182add0d91Sopenharmony_ci xz-utils \ 192add0d91Sopenharmony_ci bzip2 202add0d91Sopenharmony_ci 212add0d91Sopenharmony_ciCOPY emscripten.sh / 222add0d91Sopenharmony_ciRUN bash /emscripten.sh 232add0d91Sopenharmony_ci 242add0d91Sopenharmony_ciENV PATH=$PATH:/rust/bin \ 252add0d91Sopenharmony_ci CARGO_TARGET_ASMJS_UNKNOWN_EMSCRIPTEN_RUNNER=node 262add0d91Sopenharmony_ci 272add0d91Sopenharmony_ci# `-g4` is used by default which causes a linking error. 282add0d91Sopenharmony_ci# Using `-g3` not to generate a source map. 292add0d91Sopenharmony_ciENV EMCC_CFLAGS=-g3 302add0d91Sopenharmony_ci 312add0d91Sopenharmony_ciCOPY emscripten-entry.sh / 322add0d91Sopenharmony_ciENTRYPOINT ["/emscripten-entry.sh"] 33