Files
OpenRCT2-Web/emscripten/docker/Dockerfile
T
Mike LiuandClaude Opus 4.6 3b0c966f99 refactor: consolidate emscripten files under emscripten/
Move Docker build infrastructure from docker/emscripten/ to
emscripten/docker/, and move docker-build and serve scripts from
scripts/ to emscripten/. Keeps build-emscripten in scripts/ for
CI compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:19:16 +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"]