ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:1b6c8c9518be42fa2afe5e241ca31677fce58d27cdfa88baa91a65a259be3637 in / |
CMD ["/bin/bash"] |
COPY /emsdk /emsdk # buildkit |
ENV EMSDK=/emsdk PATH=/emsdk:/emsdk/upstream/emscripten:/emsdk/node/20.18.0_64bit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
RUN /bin/sh -c echo "## Create emscripten user (1000:1000)" && groupadd --gid 1000 emscripten && useradd --uid 1000 --gid emscripten --shell /bin/bash --create-home emscripten && echo "## Done" # buildkit |
RUN /bin/sh -c echo "## Update and install packages" && apt-get -qq -y update && DEBIAN_FRONTEND="noninteractive" TZ="America/San_Francisco" apt-get -qq install -y --no-install-recommends sudo libxml2 ca-certificates python3 python3-pip wget curl zip unzip git git-lfs ssh-client build-essential make ant libidn12 cmake openjdk-11-jre-headless && apt-get -y clean && apt-get -y autoclean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/debconf/*-old && rm -rf /usr/share/doc/* && rm -rf /usr/share/man/?? && rm -rf /usr/share/man/??_* && echo "## Done" # buildkit |
WORKDIR /src |
ENTRYPOINT ["/emsdk/docker/entrypoint.sh"] |
LABEL maintainer=kontakt@trzeci.eu org.label-schema.name=emscripten org.label-schema.description=The official container with Emscripten SDK org.label-schema.url=https://emscripten.org org.label-schema.vcs-url=https://github.com/emscripten-core/emsdk org.label-schema.docker.dockerfile=/docker/Dockerfile |
RUN /bin/sh -c wget -O /tmp/wasi-stub.tar.gz https://github.com/astrale-sharp/wasm-minimal-protocol/releases/download/wasi-stub-0.2.0/wasi-stub-x86_64-unknown-linux-musl.tar.gz && mkdir /tmp/wasi-stub && tar -xf /tmp/wasi-stub.tar.gz -C /tmp/wasi-stub --strip-components=1 && mv /tmp/wasi-stub/wasi-stub /bin/wasi-stub && chmod +x /bin/wasi-stub && rm -r /tmp/wasi-stub* # buildkit |
COPY compile.sh /bin/compile # buildkit |
RUN /bin/sh -c chmod +x /bin/compile # buildkit |