Skip to content

Commit

Permalink
chore(clang-wasm): alpine 3.20, clang 17
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Aug 25, 2024
1 parent 27bfa1d commit 691eae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang-wasm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM alpine:3.20
RUN apk update
RUN apk add clang lld git make llvm

Expand All @@ -7,8 +7,8 @@ RUN git clone https://github.com/CraneStation/wasi-libc.git && \
make install INSTALL_DIR=/opt/wasi-libc && \
rm -rf /wasi-libc

RUN mkdir -p /usr/lib/llvm16/lib/clang/16/lib/wasi/ && \
wget -O /usr/lib/llvm16/lib/clang/16/lib/wasi/libclang_rt.builtins-wasm32.a https://github.com/jedisct1/libclang_rt.builtins-wasm32.a/blob/master/precompiled/llvm-15-to-16/libclang_rt.builtins-wasm32.a?raw=true
RUN mkdir -p /usr/lib/llvm17/lib/clang/17/lib/wasi/ && \
wget -O /usr/lib/llvm17/lib/clang/17/lib/wasi/libclang_rt.builtins-wasm32.a https://github.com/jedisct1/libclang_rt.builtins-wasm32.a/blob/master/precompiled/llvm-17/libclang_rt.builtins-wasm32.a?raw=true

RUN mkdir /src && chown nobody /src
USER nobody
Expand Down

0 comments on commit 691eae5

Please sign in to comment.