[docker] Add workaround for wasm-opt stack size issue
This commit is contained in:
parent
8d469b07df
commit
1511692b1e
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine
|
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine
|
||||||
RUN dotnet workload install wasm-tools
|
RUN dotnet workload install wasm-tools
|
||||||
RUN apk add --no-cache --no-progress bash python3
|
RUN apk add --no-cache --no-progress bash python3
|
||||||
|
|
||||||
|
# Workaround for https://github.com/dotnet/sdk/issues/44933
|
||||||
|
RUN apk add --no-cache --no-progress go
|
||||||
|
RUN go install github.com/yaegashi/muslstack@latest
|
||||||
|
RUN find /usr/share/dotnet/packs -name wasm-opt -type f | xargs ~/go/bin/muslstack -s 0x800000
|
||||||
|
RUN rm -rf ~/go
|
||||||
|
RUN apk del --no-cache --no-progress go
|
||||||
|
|
||||||
RUN ln -sf /bin/bash /bin/sh
|
RUN ln -sf /bin/bash /bin/sh
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue