File: build.sh

package info (click to toggle)
colmap 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,408 kB
  • sloc: cpp: 142,920; ansic: 17,774; python: 3,613; sh: 428; makefile: 160
file content (10 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# Build COLMAP Docker image from the repository root.
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"

docker build "$REPO_ROOT" \
    -f "$REPO_ROOT/docker/Dockerfile" \
    -t colmap:latest
# In some cases, you may have to explicitly specify the compute architecture:
#   docker build . -f docker/Dockerfile -t colmap:latest --build-arg CUDA_ARCHITECTURES=75