File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 88 # Serve QtThermalFIST.html as index
99 try_files {path} /QtThermalFIST.html
1010
11+ # Prevent browser from caching stale WASM builds
12+ @wasm_assets path *.js *.wasm
13+ header @wasm_assets Cache-Control "no-cache, must-revalidate"
14+
1115 # Enable compression
1216 encode gzip
1317}
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ RUN apt-get update && apt-get install -y \
2222# Install aqtinstall for downloading Qt
2323RUN pip3 install aqtinstall
2424
25- # Install Emscripten 4.0.7
25+ # Install Emscripten 4.0.7 (pin emsdk to the 4.0.7 release tag for reproducibility)
2626WORKDIR /opt
27- RUN git clone https://github.com/emscripten-core/emsdk.git
27+ RUN git clone --depth 1 -b 4.0.7 https://github.com/emscripten-core/emsdk.git
2828WORKDIR /opt/emsdk
2929RUN ./emsdk install 4.0.7 && \
3030 ./emsdk activate 4.0.7
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ if ! docker image inspect thermal-fist-wasm-base >/dev/null 2>&1; then
2323fi
2424
2525echo " === Building Thermal-FIST WASM ==="
26- docker compose down
26+ # Build new image while old container keeps serving traffic
2727docker compose build --build-arg CACHEBUST=$( date +%s)
28+ # Recreate container with new image (only seconds of downtime)
2829docker compose up -d
2930echo " "
3031echo " === Done ==="
You can’t perform that action at this time.
0 commit comments