live-proxmox/bin/build-iso-docker

15 lines
461 B
Bash
Executable File

#!/bin/sh
set -e
IMAGE=debian:bookworm-slim
echo "${PWD}"
docker volume create live-build-cache || true
#docker run --privileged --rm --workdir /app --env _DEBUG="${LB_DEBUG:-false}" \
docker run --privileged --workdir /app --env _DEBUG="${LB_DEBUG:-false}" \
--volume "live-build-cache:/app/build/cache" \
--volume "${PWD}/bin:/app/bin" \
--volume "${PWD}/dist:/app/dist" \
--volume "${PWD}/live-build:/app/live-build" \
"${IMAGE}" "bin/build-iso"