Skip to content

Commit 1e47d9e

Browse files
authored
docker: fix the problem with the wasm build (#1357)
* docker: fix the problem with the wasm build
1 parent 8a2e7ba commit 1e47d9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo
2727
COPY --from=tinygo-base /tinygo/src /tinygo/src
2828
COPY --from=tinygo-base /tinygo/targets /tinygo/targets
2929

30-
RUN apt-get install -y libllvm10 lld-10
30+
RUN cd /tinygo/ && \
31+
apt-get update && \
32+
apt-get install -y make clang-10 libllvm10 lld-10 && \
33+
make wasi-libc
3134

3235
# tinygo-avr stage installs the needed dependencies to compile TinyGo programs for AVR microcontrollers.
3336
FROM tinygo-base AS tinygo-avr

0 commit comments

Comments
 (0)