psemek/package/web/Dockerfile
lisyarus c2196d7dc8
All checks were successful
Run tests / Run tests (push) Successful in 6m53s
Add freetype support on web
2026-07-25 19:28:29 +03:00

23 lines
725 B
Docker

FROM lisyarus/psemek:package-linux
# Install emsdk - the version the build was tested at
WORKDIR /home
RUN git clone --branch 6.0.2 https://github.com/emscripten-core/emsdk.git
WORKDIR /home/emsdk
RUN ./emsdk install 6.0.2
RUN ./emsdk activate 6.0.2
RUN . ./emsdk_env.sh && embuilder build sdl2 sdl2-mt zlib freetype
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 config --global advice.detachedHead false
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 .