psemek/package/web/Dockerfile

20 lines
610 B
Docker

FROM lisyarus/psemek:package-linux
# Install emsdk - the version the build was tested at
WORKDIR /home
RUN git clone --branch 3.1.46 https://github.com/emscripten-core/emsdk.git
WORKDIR /home/emsdk
RUN ./emsdk install 3.1.46
RUN ./emsdk activate 3.1.46
WORKDIR /home
COPY env-helper.sh .
# Source emsdk env variables when running the container
ENTRYPOINT ["/home/env-helper.sh"]
# Install Boost sources
WORKDIR /home
RUN git clone --recurse-submodules --branch boost-1.87.0 https://github.com/boostorg/boost.git
# Install toolchain file & main packaging script
COPY toolchain-host.cmake .
COPY package.sh .