build-synthseg-container.sh 324 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. set -x
  4. base_directory=$(git rev-parse --show-toplevel)
  5. docker buildx build \
  6. --tag="synthseg:latest" \
  7. --load \
  8. "${base_directory}/code/synthseg"
  9. singularity \
  10. build \
  11. --disable-cache \
  12. "${base_directory}/synthseg.sif" \
  13. "docker-daemon://synthseg:latest"