corazawaf / coraza-proxy-wasm

proxy-wasm filter based on Coraza WAF
Apache License 2.0
115 stars 24 forks source link

why isn't there build/main.wasm file in coraza-proxy-wasm version 0.5.0 #296

Open erictarrence opened 1 week ago

erictarrence commented 1 week ago

Because isn't there build/main.wasm file in coraza-proxy-wasm version 0.5.0 I can't build coraza-proxy-was image

podman build -t docker.io/erictarrence/coraza-proxy-wasm:0.5 .
WARN[0000] missing "BASE_IMAGE" build argument. Try adding "--build-arg BASE_IMAGE=<VALUE>" to the command line 
STEP 1/2: FROM scratch
STEP 2/2: COPY build/main.wasm /plugin.wasm
Error: error building at STEP "COPY build/main.wasm /plugin.wasm": checking on sources under "/data/git/coraza-proxy-wasm-0.5.0": copier: stat: "/build/main.wasm": no such file or directory

/data/git/coraza-proxy-wasm-0.5.0$ ls
CODEOWNERS  Dockerfile  e2e  example  ftw  go.mod  go.sum  go.work  init_tinygo.go  internal  LICENSE  lifecycle_multiphase_test.go  magefiles  mage.go  main.go  main_test.go  README.md  rule_option.go  rule_option_multiphase.go  wasmplugin