docker/build.sh
raw| 1 | #!/bin/bash |
| 2 | # Build COLMAP Docker image from the repository root. |
| 3 | SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" |
| 4 | REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" |
| 5 | |
| 6 | docker build "$REPO_ROOT" \ |
| 7 | -f "$REPO_ROOT/docker/Dockerfile" \ |
| 8 | -t colmap:latest |
| 9 | # In some cases, you may have to explicitly specify the compute architecture: |
| 10 | # docker build . -f docker/Dockerfile -t colmap:latest --build-arg CUDA_ARCHITECTURES=75 |