File: /app/wasmer.toml
[package]
entrypoint = "run"
[dependencies]
"php/php-32" = "=8.3.2102"
"wasmer/bash" = "=1.0.24"
"curl/curl" = "*"
[fs]
"/app" = "."
[[command]]
name = "run"
module = "php/php-32:php"
runner = "wasi"
[command.annotations.wasi]
main-args = [
"-t",
"/app/",
"-S",
"0.0.0.0:8080",
"-d",
"memory_limit=256M",
"-d",
"max_execution_time=600",
"-d",
"max_input_time=600",
"-d",
"max_input_vars=4096",
"-d",
"upload_max_filesize=1024M",
"-d",
"post_max_size=1024M",
]
[[command]]
name = "install-wp"
module = "wasmer/bash:bash"
runner = "wasi"
[command.annotations.wasi]
main-args = ["/app/wasmer/install.sh"]
[[command]]
name = "wp-cron"
module = "php/php-32:php"
runner = "wasi"
[command.annotations.wasi]
main-args = [
"/app/vendor/bin/wp-php",
"cron",
"event",
"run",
"--due-now",
"--allow-root",
"--path=/app",
]