This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Copyright The OWASP Coraza contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright wasilibs authors | ||
# SPDX-License-Identifier: MIT | ||
|
||
FROM ghcr.io/corazawaf/coraza-proxy-wasm/buildtools-wasi-sdk:main | ||
FROM ghcr.io/webassembly/wasi-sdk:wasi-sdk-20 | ||
|
||
RUN apt-get install -y autogen autoconf automake libtool | ||
RUN apt-get -y update && apt-get -y install curl | ||
|
||
RUN mkdir -p /bdwgc && curl -L https://github.com/ivmai/bdwgc/archive/0a1667bee7f2c004abda6ecd173cd80bfef8412c.tar.gz | tar -xz --strip-components 1 -C /bdwgc | ||
WORKDIR /bdwgc | ||
RUN ./autogen.sh | ||
|
||
# While signals aren't actually used the header file is included unconditionally. We can enable the header file | ||
# without linking the actual signals library because the functions aren't called. | ||
ENV CFLAGS -D_WASI_EMULATED_SIGNAL ${CFLAGS} | ||
ENV CFLAGS -O3 -D_WASI_EMULATED_SIGNAL ${CFLAGS} | ||
|
||
# host is required by configure but not used so set it arbitrarily | ||
RUN ./configure --disable-threads --disable-shared --disable-gcj-support --disable-java-finalization --disable-atomic-uncollectible --host=i686-pc-linux-gnu | ||
RUN make | ||
|
||
CMD ["sh", "-c", "cp /bdwgc/.libs/libgc.a /usr/lib/llvm-15/lib/clang/15.*/lib/wasi/libclang_rt.builtins-wasm32.a /out/"] | ||
CMD ["sh", "-c", "cp /bdwgc/.libs/libgc.a /usr/lib/llvm-${LLVM_VERSION}/lib/clang/${LLVM_VERSION}/lib/wasi/libclang_rt.builtins-wasm32.a /out/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.