build(web): add `BUILD_TYPE` arg to Dockerfile

(cherry picked from commit 07b6fa0e2e)
This commit is contained in:
iTrooz 2025-12-14 15:02:01 +01:00 committed by WerWolv
parent fdc1434cc6
commit 1a7fefbc22
1 changed files with 2 additions and 1 deletions

3
dist/web/Dockerfile vendored
View File

@ -50,6 +50,7 @@ ENV CCACHE_DIR=/cache/ccache
RUN mkdir /build
WORKDIR /build
ARG BUILD_TYPE=Release
RUN --mount=type=cache,target=/cache \
--mount=type=bind,source=.,target=/imhex <<EOF
@ -70,7 +71,7 @@ ccache -zs
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \
-DLIBROMFS_COMPRESS_RESOURCES=OFF \
-DIMHEX_ENABLE_PLUGIN_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=${BUILD_TYPE}
ninja -j $JOBS