Skip to content

Commit 9f09c44

Browse files
committed
build(docker): work around Windows Git Bash build image issues
Permission denied errors. Still there, but the build completes.
1 parent 835794b commit 9f09c44

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/docker/itk-wasm/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ COPY web-build /usr/local/bin/
4040

4141
# Trigger Emscripten to cache builds of required system libraries
4242
ADD median-filter-pipelineCopy /median-filter-pipelineCopy
43-
ADD populate-cache.sh /usr/local/bin/populate-cache.sh
44-
RUN /usr/local/bin/populate-cache.sh && rm /usr/local/bin/populate-cache.sh
43+
RUN if [ $BASE_IMAGE = "itkwasm/emscripten-base" ]; then cd /median-filter-pipelineCopy; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto=thin -s DISABLE_EXCEPTION_CATCHING=0'; rm -rf ./web-build; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-flto -s DISABLE_EXCEPTION_CATCHING=0'; rm -rf ./web-build; /usr/local/bin/web-build emscripten-build -DCMAKE_EXE_LINKER_FLAGS='-fno-lto -s DISABLE_EXCEPTION_CATCHING=1'; rm -rf /median-filter-pipelineCopy; chmod -R 777 /emsdk/upstream/emscripten/cache; fi
4544

4645
# Build-time metadata as defined at http://label-schema.org
4746
ARG BUILD_DATE

src/docker/itk-wasm/populate-cache.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)