Files
OpenRCT2-Web/docker/emscripten/Dockerfile
T
Mike LiuandClaude Opus 4.6 ebae3076f4 feat: track emscripten Docker build infrastructure
Add Dockerfile, build-depends.sh, clone-deps.sh, and .dockerignore
for building a native arm64 emscripten Docker image. Add the
docker-build-emscripten DinD wrapper script.

The ext/ directory (pre-cloned deps, ~413MB) is gitignored.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:09:38 +00:00

43 lines
966 B
Docker

FROM fedora:42
# Install build dependencies
RUN dnf update -y && dnf install -y \
autoconf \
automake \
bzip2-devel \
ccache \
cmake \
git \
json-devel \
libicu-devel \
libtool \
libzip-devel \
ninja-build \
pkg-config \
python3 \
zip \
&& dnf clean all
# Install Emscripten SDK
WORKDIR /
RUN git clone https://github.com/emscripten-core/emsdk.git
WORKDIR /emsdk/
RUN ./emsdk install 5.0.0
RUN ./emsdk activate 5.0.0
ENV PATH="/emsdk:/emsdk/upstream/emscripten:/emsdk/node/22.16.0_64bit/bin:${PATH}"
# Copy nlohmann headers where the build expects them
RUN cp -r /usr/include/nlohmann /emsdk/upstream/emscripten/cache/sysroot/include/
# Copy pre-cloned dependency sources and build script
WORKDIR /ext/
COPY ext/ /ext/
COPY build-depends.sh /ext/
RUN bash build-depends.sh
ENV SPEEXDSP_ROOT=/ext/speexdsp
ENV ICU_ROOT=/ext/icu/icu4c/source
ENV LIBZIP_ROOT=/ext/libzip/build
SHELL ["/bin/bash", "-c"]