seccomp-sandbox/build-x2t-sandbox.sh
2024-01-19 02:47:51 +00:00

12 lines
475 B
Bash
Executable File

#!/bin/bash
set -e
buildah bud --format=docker --security-opt label=disable --userns=host --network=host --rm=true --layers=true --memory=0 \
--tag jcr.jianguoyun.net.cn/onlyoffice/x2r-sandbox-builder --file ./build/x2t-snadbox-ubuntu.dockerfile .
podman run --rm --security-opt label=disable --network=host \
--volume .:/app \
--workdir /app/src \
jcr.jianguoyun.net.cn/onlyoffice/x2r-sandbox-builder \
bash -c "/root/.cargo/bin/cargo build --release"